cvs commit: src/usr.bin/script script.c

看板DFBSD_commit作者時間21年前 (2005/03/16 14:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串4/4 (看更多)
cpressey 2005/03/15 22:26:49 PST DragonFly src repository Modified files: usr.bin/script script.c Log: De-spaghettify: - fail() consists of two statements and is called only once; inline it. - The point of finish() is to reap the child, so call it reap(). - Make the child's pid local to main(), and pass it to reap(). - done() is always called after reap(), so calling done() from inside reap() is not necessary; let main() handle it instead. Revision Changes Path 1.10 +8 -18 src/usr.bin/script/script.c http://www.dragonflybsd.org/cvsweb/src/usr.bin/script/script.c.diff?r1=1.9&r2=1.10&f=u
文章代碼(AID): #12DzBp00 (DFBSD_commit)
文章代碼(AID): #12DzBp00 (DFBSD_commit)