Re: [Toybox] [PATCH] Factor out dhcpd's and syslogd's main loops into a library function

2013-12-02 Thread Felix Janda
Rob Landley wrote: Taking the remaining holiday time to close old reply windows and such. I've ahd this one open a while... :) On 09/06/2013 05:35:27 PM, Felix Janda wrote: [...] Are we normally blocking a lot of signals in other commands? Using the 6 argument version instead of

Re: [Toybox] [PATCH] Factor out dhcpd's and syslogd's main loops into a library function

2013-12-01 Thread Rob Landley
Taking the remaining holiday time to close old reply windows and such. I've ahd this one open a while... :) On 09/06/2013 05:35:27 PM, Felix Janda wrote: Rob Landley wrote: On 09/01/2013 08:54:27 AM, Felix Janda wrote: Both syslogd and dhcpd wait for sockets, signals or a timeout.

Re: [Toybox] [PATCH] Factor out dhcpd's and syslogd's main loops into a library function

2013-09-18 Thread Felix Janda
Rob Landley wrote: On 09/10/2013 04:22:41 PM, Felix Janda wrote: Rob Landley wrote: And yet a call to pselect needs its own sigprocmask() call as setup? So... why are we using pselect again? Didn't I say so? Before the call to pselect we block everything. But why do we do that?

Re: [Toybox] [PATCH] Factor out dhcpd's and syslogd's main loops into a library function

2013-09-15 Thread Rob Landley
On 09/10/2013 04:22:41 PM, Felix Janda wrote: Rob Landley wrote: And yet a call to pselect needs its own sigprocmask() call as setup? So... why are we using pselect again? Didn't I say so? Before the call to pselect we block everything. But why do we do that? (So that only kill -9 will kill

Re: [Toybox] [PATCH] Factor out dhcpd's and syslogd's main loops into a library function

2013-09-10 Thread Felix Janda
Rob Landley wrote: On 09/01/2013 08:54:27 AM, Felix Janda wrote: diff -r 587b7572aac2 -r 752d22ece0fe lib/lib.h --- a/lib/lib.h Sun Sep 01 15:13:58 2013 +0200 +++ b/lib/lib.h Sun Sep 01 15:25:08 2013 +0200 @@ -201,4 +201,7 @@ char *astrcat (char *, char *); char *xastrcat