[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: off-topic: need help with fork and Xlib error
From:       Stefan van den Oord <s.m.vandenoord () student ! utwente ! nl>
Date:       1999-06-01 21:40:50
[Download RAW message or body]

On Tue, 01 Jun 1999, Waldo Bastian wrote:
> > The child process inherits the file descriptor, and parent and child
> > both write to the X server. So the poor server gets multiple requests
> > on the same pipe and this confuses him.
> 
> Ah of course! The QMessageBox is launched from the other thread! I was
> thinking that somehow the "exit(1)" fiddled with the fd's which came to
> me as unlikely.

I'm sorry, but that cannot be it. Just this code gives the error as
well:

if ( fork() )
{
    /* child process */
    exit ( 1 );
}

I didn't call QMessageBox yet when I got the error...

--
Stefan van den Oord
s.m.vandenoord@student.utwente.nl

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic