diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-08-24 13:11:04 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-08-24 13:11:04 +0200 |
commit | 86f323290c9f99b72e359ff2c37eed528f5b3976 (patch) | |
tree | fdac2c5cfdcc0136a827fb1e86bb950cfcba4237 /rc/bin/patch/diff | |
parent | d404e9e9f8250f740bacb0b30d586ea1ad808015 (diff) | |
download | plan9front-86f323290c9f99b72e359ff2c37eed528f5b3976.tar.xz |
wait: always check up->nchild before going to sleep
always make sure that there are child processes we can wait for
before sleeping.
put pwait() sleep into a loop and recheck. this is not strictly
neccesary but prevents accidents if there are spurious wakeups
or a bug.
Diffstat (limited to 'rc/bin/patch/diff')
0 files changed, 0 insertions, 0 deletions