Glibmm, Giomm and daemon program



Hello!

I'm working on daemon program, which use Glibmm and Giomm. I have to call few functions from Glib and Gio before I run fork(), so at the beginning of main function I call Glib::init() and Gio::init():

main()
{
Glib::init ();
Gio::init ();

// Here I use Glib::OptionContext etc

fork ();

// rest of code
}

I'd like to know if Glib::init() and Gio::init() do some "weird" things (like opening files) in background, which may cause problems, when I fork program.

Bye!


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