cvs commit: src/usr.bin/script script.c
Chris Pressey
cpressey at crater.dragonflybsd.org
Tue Mar 1 13:21:35 PST 2005
cpressey 2005/03/01 13:20:17 PST
DragonFly src repository
Modified files:
usr.bin/script script.c
Log:
In the parent process, close the slave file descriptor at the earliest
opportunity (just after we fork.) This is not strictly necessary, but
it is good programming practice; and, since this program is one of the
only users of openpty(3) in the tree, it behooves us to set a good
example here.
Revision Changes Path
1.8 +1 -0 src/usr.bin/script/script.c
http://www.dragonflybsd.org/cvsweb/src/usr.bin/script/script.c.diff?r1=1.7&r2=1.8&f=u
More information about the Commits
mailing list