1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

lib: Fix 1417431 Unchecked return value from library

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2017-09-05 13:17:54 +02:00 committed by Jeremy Allison
parent 970f78ea2e
commit 5b53254ffc

View File

@ -232,7 +232,11 @@ static int test_busyfork(void)
return -1;
}
poll(NULL, 0, 200);
ret = poll(NULL, 0, 200);
if (ret == -1) {
perror("poll failed");
return -1;
}
child = fork();
if (child < 0) {
@ -278,7 +282,11 @@ static int test_busyfork(void)
return -1;
}
poll(NULL, 0, 200);
ret = poll(NULL, 0, 200);
if (ret == -1) {
perror("poll failed");
return -1;
}
waitret = waitpid(child, &wstatus, WNOHANG);
if (waitret != child) {