svn commit: r205009 - head/usr.bin/script
Ed Schouten
ed at FreeBSD.org
Thu Mar 11 11:28:30 UTC 2010
Author: ed
Date: Thu Mar 11 11:28:29 2010
New Revision: 205009
URL: http://svn.freebsd.org/changeset/base/205009
Log:
Improve the change made in the previous commit.
doshell() never returns, so there is no need to see whether we are the
parent process.
Modified:
head/usr.bin/script/script.c
Modified: head/usr.bin/script/script.c
==============================================================================
--- head/usr.bin/script/script.c Thu Mar 11 11:09:58 2010 (r205008)
+++ head/usr.bin/script/script.c Thu Mar 11 11:28:29 2010 (r205009)
@@ -158,8 +158,7 @@ main(int argc, char *argv[])
}
if (child == 0)
doshell(argv);
- else
- close(slave);
+ close(slave);
if (flushtime > 0)
tvp = &tv;
More information about the svn-src-all
mailing list