Maybe I should mention why I'm looking at directfb some more.
If I do this.
pid_t pID;
pID=fork();
if( pID == 0 ) {
exit(0);
}
I get this.
(!!!) *** WARNING [Application exited without deinitialization of
DirectFB!] *** [core.c:858 in dfb_core_deinit_check()]
(!!!) *** WARNING [still objects in 'Layer Region Pool'] ***
[object.c:241 in fusion_object_pool_destroy()]
(!!!) *** WARNING [still objects in 'Layer Context Pool'] ***
[object.c:241 in fusion_object_pool_destroy()]
(!!!) *** WARNING [still objects in 'Surface Pool'] ***
[object.c:241 in fusion_object_pool_destroy()]
On Dec 31, 2007 8:27 PM, Mike Emmel <[EMAIL PROTECTED]> wrote:
> I'm running into some fascinating problems related to forking.
>
> I found this.
>
> pthread_atfork
>
> In my particular case I'm having some problems with the X11 demo back
> end related to
> XShm getting munged after a fork.
>
> But I'm not clear on whats going on but since DirectFB is multi
> threads we may need to consider
> if a few more pthreads_atforks are needed.
>
> I noticed the calls in fusion.c but what about XShm for the X11 backend ?
>
> Googling did not reveal if something needs to be done. I did not find
> any use of pthread_atfork in the X11 server either.
>
>
>
> Mike
>
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev