On April 27, 2015 11:31:22 AM CEST, Jochen Sprickerhof 
<d...@jochen.sprickerhof.de> wrote:
>* koneu <kone...@googlemail.com> [2015-04-27 11:25]:
>> On April 27, 2015 11:23:52 AM CEST, Jochen Sprickerhof
><d...@jochen.sprickerhof.de> wrote:
>> >I'm spawning other process from st (dmenu and surf for urlview).
>> >Without
>> >checking the pid, st stops working if some other child finishes.
>> >Without
>> >WNOHANG it would hang as well.
>> 
>> Weird, I thought the shell would catch those sigchlds. Do you exec by
>Amy chance?
>
>Why should the shell catch it when spawning them from st and yes, I use
>exec to spawn a process from st with a shortcut.

Ohh, I get it, sorry.
waitpid and WNOHANG is not the way to go though. Use wait
and check the pid against the shell's to decide whether to quit st.

Reply via email to