bug-bash
[Top][All Lists]
Advanced

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

Re: bash passes changed termios to backgrounded process(es) groups?


From: Steffen Nurpmeso
Subject: Re: bash passes changed termios to backgrounded process(es) groups?
Date: Fri, 30 Aug 2024 02:05:39 +0200
User-agent: s-nail v14.9.25-599-g5c75a327b2

Robert Elz wrote in
 <23591.1724975272@jacaranda.noi.kre.to>:
 |    Date:        Fri, 30 Aug 2024 00:39:40 +0200
 |    From:        Steffen Nurpmeso <steffen@sdaoden.eu>
 |    Message-ID:  <20240829223940.CDUfy6-w@steffen%sdaoden.eu>
 |
 || On Linux it seems not even to cause TTOU if you set
 || attributes which are effectively identical to what is already
 || active
 |
 |Yes, my wording was sloppy - any of the ioctls which could change
 |the terminal attributes cause SIGTTOU, regardless of whether there's
 |an actual change or not.

  mx_termios_cmd(26,1)
          mx_termios_cmd FIRST TIME
          mx_termios_cmd QUERIED NORM, SET IT AGAIN
  a_termios_onsig(22) (is TTOU=1)
  a_termios_onsig(18) (is TTOU=0)
          mx_termios_cmd THEREAFTER

You are right.  (Race aside.  18 is SIGCONT.)

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)



reply via email to

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