[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 Taferner <taferner () salzburg ! co ! at>
Date:       1999-06-02 6:22:47
[Download RAW message or body]

On Tue, 01 Jun 1999, Stefan van den Oord wrote:
[...]
> I'm sorry, but that cannot be it. Just this code gives the error as
> well:
> 
> if ( fork() )
> {
>     /* child process */
>     exit ( 1 );
> }

I think you are missing a "!" here ;->
  if (!fork())

Otherwise you exit() the parent.

--Stefan

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

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