Skip to content

Commit

Permalink
recvmmsg01: Use exit()
Browse files Browse the repository at this point in the history
exit() flush open streams, therefore should be used unless
exit in signal handlers (exit() is not async-signal-safe).

Fixes: 1d4d5a0 ("recvmmsg01: Workaround segfault on libc variant on 32 bit")
Signed-off-by: Petr Vorel <[email protected]>
  • Loading branch information
pevik committed Nov 26, 2024
1 parent 37a806c commit 7f97a22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testcases/kernel/syscalls/recvmmsg/recvmmsg01.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ static void test_bad_addr(unsigned int i)
pid = SAFE_FORK();
if (!pid) {
verify_recvmmsg(i, timeout);
_exit(0);
exit(0);
}

SAFE_WAITPID(pid, &status, 0);
Expand Down

0 comments on commit 7f97a22

Please sign in to comment.