De-spaghettify:
commit9f57709e8bea556a6eb6732f4c52b179f305fac4
authorChris Pressey <cpressey@dragonflybsd.org>
Wed, 16 Mar 2005 06:26:49 +0000 (16 06:26 +0000)
committerChris Pressey <cpressey@dragonflybsd.org>
Wed, 16 Mar 2005 06:26:49 +0000 (16 06:26 +0000)
tree4a01271950e58730278000d0eed8e61bca041a38
parent02594f885dc1f58173a0e2c4b2625640a978fa1b
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.
usr.bin/script/script.c