Module: xenomai-3 Branch: master Commit: 4da3ace37d4166a5c7da927a30dc612ebda47acd URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=4da3ace37d4166a5c7da927a30dc612ebda47acd
Author: Jan Kiszka <jan.kis...@siemens.com> Date: Tue Jun 30 20:28:45 2015 +0200 testsuite/smokey/leaks: Terminate forked child directly Do not return to smokey main from the forked child as that may have undesired effects. Only the parent process is supposed to do this. Signed-off-by: Jan Kiszka <jan.kis...@siemens.com> --- testsuite/smokey/leaks/leaks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testsuite/smokey/leaks/leaks.c b/testsuite/smokey/leaks/leaks.c index 317d9d1..d5577d8 100644 --- a/testsuite/smokey/leaks/leaks.c +++ b/testsuite/smokey/leaks/leaks.c @@ -237,7 +237,7 @@ static int run_leaks(struct smokey_test *t, int argc, char *const argv[]) return child; if (!child) { subprocess_leak(); - return EXIT_SUCCESS; + exit(EXIT_SUCCESS); } while (waitpid(child, NULL, 0) == -1 && errno == EINTR); sleep(1); _______________________________________________ Xenomai-git mailing list Xenomai-git@xenomai.org http://xenomai.org/mailman/listinfo/xenomai-git