Re: fork




> After a fork I get a lot of:
> Xlib: unexpected async reply (sequence 0x15a)!
> and normally the app crashes.
> 
> How can I do something like a fork in a gnome app?

You need to close down all of your file descriptors after fork.  The
problem is that both sides of the fork are now sharing the same file
descriptor that is used to talk to the X server.

Miguel



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]