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;