sbase

suckless unix tools
git clone git://git.2f30.org/sbase.git
Log | Files | Refs | README | LICENSE

commit d519639b9bba45dba6d9dd385f4118f591143b4f
parent af2de02b5e79a28d2633480ec18ed0bc1abb9479
Author: sin <sin@2f30.org>
Date:   Mon Dec 21 14:12:09 +0000

flock: Check for waitpid() error

Diffstat:
flock.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/flock.c b/flock.c @@ -67,7 +67,8 @@ main(int argc, char *argv[]) default: break; } - waitpid(pid, &status, 0); + if (waitpid(pid, &status, 0) < 0) + eprintf("waitpid:"); if (close(fd) < 0) eprintf("close:");