Back to index

natlog  0.91.0
parentprocess.cc
Go to the documentation of this file.
00001 #include "natfork.ih"
00002 
00003     // only called by NarFork::fork, starting a daemon by ending 
00004     // the main program.
00005 
00006 void NatFork::parentProcess()
00007 {
00008     handleChildStatus();
00009 
00010         // the daemon started OK, now write its pid-file:
00011     ofstream pidFile(Options::instance().pidFile());
00012     pidFile << pid() << endl;
00013 
00014     throw Options::OK;
00015 }
00016 
00017 
00018 
00019 
00020