Re: help please!



I got those kinds of problem with a code like:
if (!fork())
{
 execlp(....);
 exit(1);
}
Because if the xec fails, exit is called, and there are some atexit() stuff
that send things to the X server, and this cause problems with the other
process.

RTFM, pal. This is in the gtk FAQ. You have to use _exit rather then exit.

j.

----)-\//-///-----------------------------------January-Weiner-3-------
Zoom! -what was that? That was your life, mate. Oh, that was 
quick, do I get another? Sorry mate, that's your lot. [ Basil ]





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