Lost O_NONBLOCK (Bug?)

2001-04-09 Thread Jason Gunthorpe
Hi, I've run into the following weird behavior on my system with 2.4.0. I have the following code: if (fork() == 0) { int Flags,dummy; if ((Flags = fcntl(STDIN_FILENO,F_GETFL,dummy)) < 0) _exit(100); if (fcntl(STDIN_FILENO,F_SETFL,Flags | O_NONBLOCK) < 0) _exit(100)

Re: Lost O_NONBLOCK (Bug?)

2001-04-13 Thread Jason Gunthorpe
On 12 Apr 2001, Philippe Troin wrote: > Apt I guess ? It has a very strange behavior when backgrounded... Not really, just want it tries to run dpkg it hangs. > > The last read was after the process was forgrounded. The read waits > > forever, the non-block flag seems to have gone missing. It