sbase

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

commit 00d7bf4ea56dd37fe34d6b6aa5a9a1e1dde2abac
parent 0c3440253bb7d7496eef18c1c115cba1f823bfb1
Author: sin <sin@2f30.org>
Date:   Mon, 21 Dec 2015 14:12:09 +0000

flock: Check for waitpid() error

Diffstat:
Mflock.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:");