Re: [hackers] [sinit] Ensure children are reaped periodically || sin

From: Dimitris Papastamos <sin_AT_2f30.org>
Date: Mon, 19 Mar 2018 17:06:50 +0000

On Sun, Mar 18, 2018 at 02:59:50PM -0700, Michael Forney wrote:
> On 2018-03-18, Laslo Hunhold <dev_AT_frign.de> wrote:
> > On Sun, 18 Mar 2018 13:09:08 -0700
> > Michael Forney <mforney_AT_mforney.org> wrote:
> >> I wonder if there is another way to do this without a timeout. Perhaps
> >> a dedicated reaper thread?
> >
> > I suggested this too, but rightfully, this would require linking sinit
> > with libpthread which would be an unacceptable overhead.
>
> A static binary linked against musl using a reaper thread instead of
> alarm grows from 13600 bytes to 13616 bytes, so "unacceptable
> overhead" seems like a bit of an exaggeration.

musl isn't the only relevant libc though.
Received on Mon Mar 19 2018 - 18:06:50 CET

This archive was generated by hypermail 2.3.0 : Mon Mar 19 2018 - 18:12:23 CET