Send inn-workers mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.isc.org/mailman/listinfo/inn-workers
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of inn-workers digest..."
Today's Topics:
1. Re: nntpsend claims to wait until innxmit is finished,
doesn't really (Julien ?LIE)
----------------------------------------------------------------------
Message: 1
Date: Fri, 23 Oct 2015 20:08:31 +0200
From: Julien ?LIE <[email protected]>
To: [email protected]
Cc: [email protected]
Subject: Re: nntpsend claims to wait until innxmit is finished,
doesn't really
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8; format=flowed
Hi Jonathan,
> The documentation for nntpsend claims that it waits until all of the
> child innxmit processes exit before it does, but it doesn't.
>
> The reason it does not is because it starts the innxmit processes,
> or more accurately the subshells that start the innxmit processes, in
> a while loop that is itself in a child process of the main shell,
> because of this line:
>
> cat ${INPUT} | while read SITE HOST SIZE_ARG FLAGS; do
>
> Since the while loop is in a pipe, it's executed in a child process.
> As a result, its child processes, i.e., the ones running innxmit,
> are notdirect children of the nntpsend shell script's process, so it
> doesn't wait for them.
>
> Note that this bug causes nntpsend to fail to work properly on
> systems that use systemd, because when nntpsend exits prematurely,
> systemd kills all of the processes it launched, including the innxmit
> processes.
Well, many thanks for your comments and the fix. Very much appreciated.
It will be included in the next release (INN 2.6.1).
Have a good week-end,
--
Julien ?LIE
? Pour c?l?brer ce jour heureux, buvons un coup, buvons-en deux. ?
(Aristophane)
------------------------------
_______________________________________________
inn-workers mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/inn-workers
End of inn-workers Digest, Vol 77, Issue 4
******************************************