Skip to content

Commit 6a56951

Browse files
broonieshuahkh
authored andcommitted
selftests/clone3: Correct log message for waitpid() failures
When logging an error from calling waitpid() on the child we print a misleading error message saying that the error we report was returned by the chilld. Fix this to say the error is from waitpid(). Applied after fixing merge conflict: Shuah Khan <[email protected]> Signed-off-by: Mark Brown <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent 698eb79 commit 6a56951

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/clone3/clone3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ static int call_clone3(uint64_t flags, size_t size, enum test_mode test_mode)
9595
getpid(), pid);
9696

9797
if (waitpid(-1, &status, __WALL) < 0) {
98-
ksft_print_msg("Child returned %s\n", strerror(errno));
98+
ksft_print_msg("waitpid() returned %s\n", strerror(errno));
9999
return -errno;
100100
}
101101
if (!WIFEXITED(status)) {

0 commit comments

Comments
 (0)