cvs commit: src/usr.bin/script script.c
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
討論串 (同標題文章)
完整討論串 (本文為第 2 之 4 篇):