mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +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:
parent
970f78ea2e
commit
5b53254ffc
@ -232,7 +232,11 @@ static int test_busyfork(void)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
poll(NULL, 0, 200);
|
ret = poll(NULL, 0, 200);
|
||||||
|
if (ret == -1) {
|
||||||
|
perror("poll failed");
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
child = fork();
|
child = fork();
|
||||||
if (child < 0) {
|
if (child < 0) {
|
||||||
@ -278,7 +282,11 @@ static int test_busyfork(void)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
poll(NULL, 0, 200);
|
ret = poll(NULL, 0, 200);
|
||||||
|
if (ret == -1) {
|
||||||
|
perror("poll failed");
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
waitret = waitpid(child, &wstatus, WNOHANG);
|
waitret = waitpid(child, &wstatus, WNOHANG);
|
||||||
if (waitret != child) {
|
if (waitret != child) {
|
||||||
|
Loading…
Reference in New Issue
Block a user