flock: Check for waitpid() error

master
sin 7 years ago
parent 0c3440253b
commit 00d7bf4ea5

@ -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:");

Loading…
Cancel
Save