lkml.org 
[lkml]   [1997]   [May]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [rfc] posix.4 signals implementation
Date
>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.

\
 
 \ /
  Last update: 2005-03-22 13:39    [W:0.033 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site