Thread (48 messages) flat view 48 messages, 3 authors, 2016-06-15

Re: [PATCH/RFC 09/11] daemon: use run-command api for async serving

From: Erik Faye-Lund <hidden>
Date: 2016-06-15 22:47:51

On Wed, Dec 2, 2009 at 8:12 PM, Johannes Sixt [off-list ref] wrote:
On Mittwoch, 2. Dezember 2009, Erik Faye-Lund wrote:
quoted
I'm not entirely sure how to make the interface, though. Any good
suggestions?
I suggest to model finish_async_nowait() after waitpid() so that

       while ((pid = waitpid(-1, &status, WNOHANG)) > 0) ...
becomes
       while ((pid = finish_async_nowait(&some_async, &status)) > 0) ...

but where the resulting status is already "decoded", i.e. zero is success and
non-zero is failure (including death through signal); WIFEXITED and
WEXITSTATUS should not be applicable to status anymore.

-- Hannes
Thanks. Implemented as suggested for the next round.

-- 
Erik "kusma" Faye-Lund
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help