Re: [gtk-list] Re: Proper way to fork() a GTK program (to exec() something)



Eric <erbrun@bellatlantic.net> writes:

> This poses a little problem: What if a GTK application wants to
> execute a program and, say, give the user some buttons to kill the
> program using various signals?  That program very well might be
> using exit(), and thus screw up your application.

No, when a new program is exec()'ed, new atexit handlers are
installed, which have nothing to do with Gtk.

So, if you want to write a multi-process Gtk application, all control
should be in one application using pipes or shared memory or whatever.
Until your child exec()'s, you'd better make damn sure that it uses
_exit() instead of exit().



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