Re: [dev] [st] [PATCH] Fix sigchld

From: koneu <koneu93_AT_googlemail.com>
Date: Mon, 27 Apr 2015 11:42:18 +0200

On April 27, 2015 11:31:22 AM CEST, Jochen Sprickerhof <dwm_AT_jochen.sprickerhof.de> wrote:
>* koneu <koneu93_AT_googlemail.com> [2015-04-27 11:25]:
>> On April 27, 2015 11:23:52 AM CEST, Jochen Sprickerhof
><dwm_AT_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.
Received on Mon Apr 27 2015 - 11:42:18 CEST

This archive was generated by hypermail 2.3.0 : Mon Apr 27 2015 - 11:48:08 CEST