[OpenSIPS-Devel] SF.net SVN: opensips:[5085] trunk/daemonize.c
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Sat Dec 20 18:43:38 CET 2008
Revision: 5085
http://opensips.svn.sourceforge.net/opensips/?rev=5085&view=rev
Author: bogdan_iancu
Date: 2008-12-20 17:43:38 +0000 (Sat, 20 Dec 2008)
Log Message:
-----------
- fixed bug in creating the pid file : if opensips is changing user, it needs also to change the owner of the pid file, so that it will be able to deleted at the end.
Affected scenario :
1) opensips is launched by root but configured to run as opensips user
2) pid file is created as user root -> pid file is owned by root
3) opensips deamonizes and runs as opensips
4) opensips shutdown and, as user opensips is not able to remove pid file which is owned by root
The fix comes at step 3), when opensips is doing chown on pidfile to switch it to opensips owner.
Modified Paths:
--------------
trunk/daemonize.c
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Devel
mailing list