hi, Please find the testcase for the below scenario..
Assertion * *---------------- * * kill -USR1 container_init * * - from the parent process and also inside a container * * - Where init has defined a custom handler for USR1 * * - Should call the handler and* * - Verify whether the signal handler is called from the proper process.
* * Signed-off by: Veerendra C <[EMAIL PROTECTED]> Results: # ./pidns16 pidns16 0 INFO : sig_handler is signalled from pid 29640pidns16 0 INFO : Container: Resumed after receiving SIGUSR1 from parentNS
pidns16 0 INFO : sig_handler is signalled from pid 1pidns16 0 INFO : Container: Resumed after sending SIGUSR1 from container itself pidns16 1 PASS : container init continued successfuly, after handling signal -USR1
Suka,After your comments, now I am checking in the signal handler the sending procee id.
If it is from the parent ns and when it is from container init. Also made some small changes after doing waitpid() in main. Regards Veerendra C Changelog:
<<inline: pidns16.pat>>
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
