Path: csiph.com!xmission!news.glorb.com!usenet.stanford.edu!not-for-mail From: Stephane Chazelas Newsgroups: gnu.bash.bug Subject: Re: SIGINT handling Date: Mon, 21 Sep 2015 17:04:12 +0100 Lines: 21 Approved: bug-bash@gnu.org Message-ID: References: <20150918151439.GA16455@chaz.gmail.com> <20150919203628.GA27872@chaz.gmail.com> <20150921094807.GA6229@chaz.gmail.com> <20150921153536.GA91724@stack.nl> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: usenet.stanford.edu 1442851466 25310 208.118.235.17 (21 Sep 2015 16:04:26 GMT) X-Complaints-To: action@cs.stanford.edu Cc: bug-bash To: Jilles Tjoelker Envelope-to: bug-bash@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=kjJmlst3V2X2huj4zaNlsrNwBW9ODe1o9Ulj1zgWBrY=; b=LOiTAXUbHFsEX9g6N3JXZSukhdN8Kqg+xwdrRZgxNR7DIOF0kBlWQeee1ZgfdHCRR3 RgLgvbydmoBfbmv3eaQ+L0B5yoZL8Q0D9bL9ISVALoFxXENs6TC0a5sxrRcSip9Cw3WP ZjfAhlwy89kWGPoVlOvI5TbpSCBLar+1CqfIHSDaCPc8lrY/T5NlaZ0vcbYqMhAQrDj5 3tosa6utqqu3EJG+PdUv2lgfETVfYz5RpJkxiqpgMl3WXeeWp3Xb0LgNR077ncMO6qer 31++8E7yxOKFc5urZht274LVBuJ6stHq2+MMUkcSQi1z3Smob6i2+rofWP49EO5HnWXQ NDcQ== X-Received: by 10.194.205.37 with SMTP id ld5mr27176192wjc.14.1442851454284; Mon, 21 Sep 2015 09:04:14 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20150921153536.GA91724@stack.nl> User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::22a X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com gnu.bash.bug:11525 2015-09-21 17:35:36 +0200, Jilles Tjoelker: [...] > This kind of job control manipulation is very hard to get right in the > general case. FreeBSD's su does it, and it needed various iterations to > fix hanging processes or unexpected logouts, some of which only occur > when the application is started from certain shells. > > Also, it is not possible to fix generally cases like > su SOMEUSER -c 'while sleep 0.1; do echo @@@; done' | less > where there are other processes in the same process group as the one > doing job control manipulations. If su changes the tty's foreground > process group, it will prevent less from reconfiguring terminal modes. [...] What was the rationale for adding that to "su"? I'd have expected job control to be only done by interactive applications. -- Stephane