Skip to contentSkip to conversation

containers: fixed libclone/libclone.c

PATCH In review Matus Marhefka 2 participants 2 messages Sep 3, 2014 – Sep 4, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 containers: fixed libclone/libclone.c

* fixed issue in do_plain_tests() function, where "return" was used in child instead of "exit(3)" which caused that child executed code from parent

---
 testcases/kernel/containers/libclone/libclone.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
testcases/kernel/containers/libclone/libclone.c +1 -1
index ebaac43..239674f 100644
@@ -97,7 +97,7 @@ int do_plain_tests(int (*fn1) (void *arg), void *arg1,
 		return -1;
 	}
 	if (pid == 0)
-		return fn1(arg1);
+		exit(fn1(arg1));
 	if (fn2)
 		ret = fn2(arg2);
 	return ret;
Signature · 11 lines
1.8.3.1


------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
#1 lore raw

Hi!

Quoted 3 lines

* fixed issue in do_plain_tests() function, where "return" was used in child instead of "exit(3)" which caused that child executed code from parent

Pushed, thanks.

Signature · 11 lines
Cyril Hrubis
[email protected]

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list