[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nmh-workers] fpurge()

From: Paul Vixie
Subject: Re: [Nmh-workers] fpurge()
Date: Tue, 25 Dec 2012 20:56:20 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0

On 2012-12-25 6:17 PM, David Levine wrote:
> ...
>     kill (sm_child, SIGKILL);
>     discard (sm_rfp);
>     discard (sm_wfp);
> The discard()'s after killing the child process seem unnecessary to me.

they should be unnecessary, but i'm betting they prevent deadlock in
older pre-Posix systems. ok to nuke 'em as far as i'm concerned --
SIGKILL is not catchable, and Posix requires that processes disconnect
asynchronously from their pipes at death time, even if they were
otherwise blocked in write() waiting for space.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]