[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: SIGPROF + SIGCHLD and igc
From: |
Eli Zaretskii |
Subject: |
Re: SIGPROF + SIGCHLD and igc |
Date: |
Mon, 30 Dec 2024 20:25:24 +0200 |
> Date: Mon, 30 Dec 2024 12:53:49 -0500
> From: Daniel Colascione <dancol@dancol.org>
> CC: eller.helmut@gmail.com, gerd.moellmann@gmail.com, ofv@wanadoo.es,
> acorallo@gnu.org
>
> >I think you are over-complicating things because you are looking for a
> >110% waterproof solution that would work for arbitrary code in the
> >handler. But we don't need such perfection, as the existing practices
> >show.
> >
>
> The code there TODAY might not need to be "waterproof", but someone might add
> logic one day that violates the unstated simplifying assumptions on which
> you're relying. In this case, we'll end up with subtle and hard to diagnose
> race conditions. Better to make the mechanism robust from the start. Trying
> to take shortcuts with POSIX signals is penny wise and pound foolish.
I agree with the ideal, but if it makes things too complicated, then I
prefer simpler solutions together with vigilance to prevent dangerous
code from entering our codebase. Experience shows that we are quite
capable of doing that, since we've been doing that for many years.
Excessive complications in the design and implementation also come
with risks, as we all know. I'd rather we avoided too many extra
threads, cross-locking, re-signaling, and other such stuff if we can.
- Re: SIGPROF + SIGCHLD and igc, (continued)
- Re: SIGPROF + SIGCHLD and igc, Pip Cet, 2024/12/28
- Re: SIGPROF + SIGCHLD and igc, Helmut Eller, 2024/12/28
- Re: SIGPROF + SIGCHLD and igc, Pip Cet, 2024/12/29
- Re: SIGPROF + SIGCHLD and igc, Eli Zaretskii, 2024/12/29
- Re: SIGPROF + SIGCHLD and igc, Pip Cet, 2024/12/29
- Re: SIGPROF + SIGCHLD and igc, Pip Cet, 2024/12/29
- Re: SIGPROF + SIGCHLD and igc, Eli Zaretskii, 2024/12/30
- Re: SIGPROF + SIGCHLD and igc, Pip Cet, 2024/12/30
- Re: SIGPROF + SIGCHLD and igc, Eli Zaretskii, 2024/12/30
- Re: SIGPROF + SIGCHLD and igc, Daniel Colascione, 2024/12/30
- Re: SIGPROF + SIGCHLD and igc,
Eli Zaretskii <=
- Re: SIGPROF + SIGCHLD and igc, Pip Cet, 2024/12/30
- Re: SIGPROF + SIGCHLD and igc, Eli Zaretskii, 2024/12/31
- Re: SIGPROF + SIGCHLD and igc, Pip Cet, 2024/12/31
- Re: SIGPROF + SIGCHLD and igc, Eli Zaretskii, 2024/12/31
- Re: Some experience with the igc branch, Pip Cet, 2024/12/23
- Re: Some experience with the igc branch, Gerd Möllmann, 2024/12/23
- Re: Some experience with the igc branch, Pip Cet, 2024/12/24
- Re: Some experience with the igc branch, Gerd Möllmann, 2024/12/24
- Re: Some experience with the igc branch, Eli Zaretskii, 2024/12/24
- Re: Some experience with the igc branch, Eli Zaretskii, 2024/12/24