lib: add include config.h in cloner.c
PATCH 1/1 lib: add include config.h in cloner.c
This is a follow fix for commit f6164ffc2804b2a68218, otherwise clone08 failed with ENOSYS error:
clone08.c:81: INFO: running CLONE_PARENT clone08.c:104: BROK: CLONE_PARENT clone() failed: ENOSYS tst_test.c:357: BROK: Reported by child (2785)
That becuase CLONE_SUPPORTS_7_ARGS macro is included in config.h, without this header file, the ltp_clone7() will fall into ENOSYS branch.
--- lib/cloner.c | 1 + 1 file changed, 1 insertion(+)
lib/cloner.c +1 -0
@@ -28,6 +28,7 @@#include <stdlib.h> #include <sched.h> #include <stdarg.h> +#include "config.h" #include "tst_clone.h" #undef clone/* we want to use clone() */
Signature · 1 line
2.20.1
PATCH 1/1 lib: add include config.h in cloner.c
----- Original Message -----
Quoted 7 lines
This is a follow fix for commit
f6164ffc2804b2a68218, otherwise clone08 failed with ENOSYS error:clone08.c:81: INFO: running
CLONE_PARENTclone08.c:104: BROK:CLONE_PARENTclone()failed: ENOSYS tst_test.c:357: BROK: Reported by child (2785)
Quoted 5 lines
That becuase
CLONE_SUPPORTS_7_ARGSmacro is included inconfig.h, without this header file, theltp_clone7()will fall into ENOSYS branch.Reported-by Ping Fang <[email protected]>Signed-off-by Li Wang <[email protected]>
Sorry about that, that include should have stayed in. Pushed.