Home » U++ Library support » U++ Library : Other (not classified elsewhere) » fork() problem
Re: fork() problem [message #18980 is a reply to message #18958] |
Sun, 02 November 2008 22:55  |
mdelfede
Messages: 1308 Registered: September 2007
|
Ultimate Contributor |
|
|
luzr wrote on Sun, 02 November 2008 16:37 | Anyway, what is DOES NOT do is GUI in forked process. That might be the cause of crash.
If I understand fork docs correctly, that pesky socket will be duplicated. That means you will have two processes communicating with X11 instead of one - but for X11, it will still be a single process.
I guess there could be the problem.
Mirek
|
Yep, I've read that fork() just shares the file handles with both processes... if you close child (what happens with exit() function...) also the parent handles get closed.
BTW, that's not the problem in my small test app, it does crash BEFORE, even if I take off the PromptOK stuffs.
Ciao
Max
|
|
|
Goto Forum:
Current Time: Sun Jun 29 20:23:21 CEST 2025
Total time taken to generate the page: 0.04429 seconds
|