you shouldn't have anything to worry about SIGTERM if you send out a SIGCHLD<br><br><div class="gmail_quote">On Tue, Aug 2, 2011 at 3:44 AM, Chris Angelico <span dir="ltr"><<a href="mailto:rosuav@gmail.com">rosuav@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Tue, Aug 2, 2011 at 11:36 AM, Andrea Di Mario <<a href="mailto:anddimario@gmail.com">anddimario@gmail.com</a>> wrote:<br>

> If i use SIGCHLD, i will have difficult when parent receive a SIGTERM, or not?<br>
<br>
</div>What you would do is create two processes. Set up your signal<br>
handlers, then fork; in the parent, just watch for the child's death -<br>
in the child, do all your work. When the parent receives SIGCHLD, it<br>
can ascertain the cause of death.<br>
<br>
ChrisA<br>
<div><div></div><div class="h5">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</div></div></blockquote></div><br>