From e8b9127d7e6d7f9a2a3f882fe4af2415419e5781 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Thu, 11 Mar 2010 11:28:29 +0000 Subject: [PATCH] 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(-) diff --git a/usr.bin/script/script.c b/usr.bin/script/script.c index 6b3d8cc2f15..6c4e0ee4db3 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;