Skip to contentSkip to conversation

Add -P <pid-file> option to ns_exec

PATCH Serge E. Hallyn 1 participant 1 message May 26, 2009

lore
Share & tools
lore
#0 lore raw
Quoted 7 lines · Quoting [email protected]…

From: Sukadev Bhattiprolu <[email protected]>

ns_exec knows the pid of the container-init in its own namespace (this is usually the global pid since we normally run ns_exec in init-pid-ns). If ns_exec writes 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.

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