g_type_init (), GMainLoop and fork ()



Hello!

I'm working on linux program, which works as background (daemon)
or foreground (regular) application. I would like to know if it's safe to
call g_type_init () and create instance of GMainLoop before fork (), so that
child process can properly use GObject system type and
run previously created GMainLoop loop?



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