Messages in this thread | ![/](/images/icornerl.gif) | | From | (Alan Modra) | Subject | Re: [rfc] posix.4 signals implementation | Date | Fri, 16 May 1997 13:20:42 +0930 (CST) |
| |
>Alan Modra posted too quickly again: > > >Dean Gaudet <dgaudet-list-linux-kernel@arctic.org>: > > > > > > cat >bad <<EOF > > > #!/bin/sh > > > ed $* > > > EOF > > > chmod +x bad > > > ./bad bad > > > > > > Now ^Z and fg that repeatedly. Eventually you'll hit a race condition > > > causing bash to exit and leave ed lying around. If you don't like ed, > > > replace it with vi (elvis or vim). > > > > Interesting. With bash 1.14.7, libc-5.4.28, linux-2.0.30, I get a > problem with the ^Z, fg sequence if I run "./bad bad" on a text > virtual console, but no problem shows up when running from an xterm. > > I'm guessing it's something to do with text virtual consoles. Here's > another text virtual console problem > > cat > bad2 <<EOF > #! /bin/sh > while date > /dev/tty; do sleep 1; done > EOF > chmod a+x bad2 > > Now run bad2 on two or more virtual consoles, and ^S on one of them. > They all stop producing date output! > Actually, this second problem doesn't seem to be just a virtual console problem. Running bad2 in a mixture of xterms and virtual consoles, and ^S on one of them, stops all of them.
| ![\](/images/icornerr.gif) |