Re: The problem with the fork() in gtk



>The FAQ at www.gtk.org  is that gtk application fork "ls" program. but in my c
>ase
>
>Not "ls" program but gtk-application.

did you understand what the FAQ said? its nothing to do with what is
fork+exec'ed. its caused by what happens to the file descriptors that
are initially shared between the parent and child processes. if the
child calls exit() without a successful call to exec(2) or its
cousins, then you will see the error you reported.

--p



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