NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/58687: sh: implement suspend builtin
The following reply was made to PR bin/58687; it has been noted by GNATS.
From: Valery Ushakov <uwe%stderr.spb.ru@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: bin/58687: sh: implement suspend builtin
Date: Mon, 23 Sep 2024 23:49:20 +0300
On Sun, Sep 22, 2024 at 20:00:03 +0000, Robert Elz via gnats wrote:
> TSTP if you prefer (that kind of difference is one reason why
> this is better as a user specific option) - I prefer SIGSTOP
> as that way the target process has no option, with TSTP it
> can simply say "no thanks" and continue. But TSTP allows
> the process to tidy up before stopping, which STOP doesn't.
Come to think of it, that sounds like another argument in favor of
providing "suspend" as a bultin. B/c in that case the shell know it's
going to signal itself, so it can send inexorable SIGSTOP, but do any
necessary preparations in advance, this side of signal().
-uwe
Home |
Main Index |
Thread Index |
Old Index