Thread: daemonization
View Single Post
  #1 (permalink)  
Old 10-31-2004
nsns nsns is offline
Registered User
 
 
Join Date: Jul 2004
Location: Padova, Italy
Posts: 36
daemonization

Hi !

My server (Ice::Service) does not want to become a daemon on some Linuxes (e.g. RH7.3).
The first original process is not terminated.
There is no problem on newer Linuxes.
I don't know is it a bug/feature/"undefined_behaviour" of glibc.

The problem is in the parent part of Ice::Service::runDaemon() which finishes with the
'return exit_code' statement.
Could you replace it with '_exit(exit_code)' (note underscore).

Best regards, Nikolai
Reply With Quote