Module: xenomai-jki
Branch: for-forge
Commit: 8442f53226b8aaffea4aa13234551ab8fad04f4d
URL:    
http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=8442f53226b8aaffea4aa13234551ab8fad04f4d

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

Reply via email to