From d5cd04e542083c5c1f5ca5bcaab7d9d14c53f16f Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 11 Mar 2010 11:28:29 +0000 Subject: Improve the change made in the previous commit. doshell() never returns, so there is no need to see whether we are the parent process. --- usr.bin/script/script.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'usr.bin/script/script.c') diff --git a/usr.bin/script/script.c b/usr.bin/script/script.c index 6b3d8cc..6c4e0ee 100644 --- a/usr.bin/script/script.c +++ b/usr.bin/script/script.c @@ -158,8 +158,7 @@ main(int argc, char *argv[]) } if (child == 0) doshell(argv); - else - close(slave); + close(slave); if (flushtime > 0) tvp = &tv; -- cgit v1.1