Add -P <pid-file> option to ns_exec
Quoted 7 lines · Quoting [email protected]…
From: Sukadev Bhattiprolu <[email protected]>
ns_execknows the pid of the container-init in its own namespace (this is usually the global pid since we normally runns_execin init-pid-ns). Ifns_execwrites out this pid from its own namespace, wrapper scripts can find the process they created more easily.
Quoted 5 lines
killall and pidof assume that all previous instances of the test program have thawed and exited gracefully :-) As such they are not very friendly during early testing and/or complicate the wrapper scripts.
Signed-off-by Sukadev Bhattiprolu <[email protected]>
Thanks Suka, all 5 patches applied.
Are you working on any common functions to do the libcgroup mountpoint detection in the .c test files? (If not, I'll do it)
thanks,
-serge