bug-bash
[Top][All Lists]
Advanced

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

Re: SIGINT handling during async functions


From: Chet Ramey
Subject: Re: SIGINT handling during async functions
Date: Fri, 10 Feb 2023 11:06:05 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.7.1

On 2/6/23 10:26 PM, Martin D Kealey wrote:

By orthogonal, I meant these things should ideally be managed by separate
controls:
  1. ignoring signals (or not)
  2. redirecting filedescriptors
  3. immediately waiting on the process (or not)
  4. creating new process groups
  5. sending a signal to about-to-be orphaned children when the shell exits



In particular I'm thinking of options along the lines of:

nohup --no-redir --[block/default/keep]=[INT,QUIT,HUP,...]

(exact names not important; hopefully --long-options are self-explanatory)

I feel like this will turn into something like daemon(1), but if someone
wants to take a shot -- using a new name, obviously -- let's talk about it.

Chet

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/




reply via email to

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