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)
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
2 matches
Mail list logo