NetBSD-Bugs archive

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

Re: bin/51556: less(1) generates SIGTTOU if lacking a controlling terminal



The following reply was made to PR bin/51556; it has been noted by GNATS.

From: David Holland <dholland-bugs%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/51556: less(1) generates SIGTTOU if lacking a controlling
 terminal
Date: Thu, 13 Oct 2016 06:10:01 +0000

 On Thu, Oct 13, 2016 at 05:15:01AM +0000, Michael van Elst wrote:
  >> Anyway, less is not wrong. The problem is that timeout(1) is
  >> manipulating job control incorrectly.
  >  
  > I fear there is no way to manipulate it 'correctly' for a tool like
  > timeout(1).
 
 Why not? I'm not convinced. The problem is that timeout is effectively
 backgrounding itself and leaving nothing in the foreground. If it
 wants to make its own process group, it has to take charge of the tty
 to match. There's no reason it can't do that. If you stick another
 shell in there instead of timeout it all works fine.
 
 -- 
 David A. Holland
 dholland%netbsd.org@localhost
 


Home | Main Index | Thread Index | Old Index