DragonFly commits List (threaded) for 2005-03
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
cvs commit: src/usr.bin/script script.c
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
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]