Re: [gtk-list] Re: fg bg processes shared memory



Hi all,

> > You can only access GTK from the parent process, and you need 
> to use
> > _exit() rather than exit() to leave the child.

This has always annoyed me: it prevents child processes from using
atexit() as well. Aren't there ways to do e.g. s.th. like atexit_clear()
after a fork()? I don't want to have to do this:

--------8<--------
[...]
fork();
[...]
my_atexit(some_func);
[...]
my_atexit_schedule();
_exit(0);
[...]
--------8<--------

Nils
-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Nils Philippsen                  @college: nils@fht-esslingen.de
Vogelsangstrasse 115             @home:    nils@wombat.dialup.fht-esslingen.de
D-70197 Stuttgart                @work:    nils@redhat.de
+49-711-6599405
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The use of COBOL cripples the mind; its teaching should, therefore, be
regarded as a criminal offence.                          -- Edsger W. Dijkstra




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