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

Chris Pressey cpressey at crater.dragonflybsd.org
Tue Mar 15 22:28:25 PST 2005


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





More information about the Commits mailing list