ok, so the code is something like<div>#process A</div><div> p = Process(...)</div><div> p.daemon = 1</div><div> p.start() # starts process B</div><div>...</div><div><br></div><div>If process A dies (say error, or ctrl-c), or finishes, then process B also dies. But if process A is killed with the "kill" command, then process B soldiers on...</div>
<div><br></div><div>Any idea on how to make process B die when process A gets killed by the "kill" command?</div><div><br></div><div>thanks,</div><div><br></div><div>--mihai<br><br><div class="gmail_quote">On Sat, Dec 3, 2011 at 4:01 AM, Jack Keegan <span dir="ltr"><<a href="mailto:whatsjacksemail@gmail.com">whatsjacksemail@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse;color:rgb(34,34,34)">I think the OP meant when the parent gets killed (by ctrl+c or similar), not deleted. At least that's what I think when I think of a program being killed. Is it even possible to send a signal in such a case?<div>
<br clear="all"><div>Cheers,</div><div><br></div><div>Jack</div></div></span><div class="HOEnZb"><div class="h5"><br><div class="gmail_quote">On Fri, Dec 2, 2011 at 4:27 PM, 88888 Dihedral <span dir="ltr"><<a href="mailto:dihedral88888@googlemail.com" target="_blank">dihedral88888@googlemail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Please check Erlang that spawn so easily. And there are Python packages can do the same task.<br>
<span><font color="#888888">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br>The earth is a very small stage in a vast cosmic arena. Think of the rivers of blood spilled by all those generals and emperors so that in glory and in triumph they could become the momentary masters of a fraction of a dot.<br>
- Carl Sagan [Pale Blue Dot]<br>
</font></span><br>--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
<br></blockquote></div><br></div>