[asterisk-dev] Shouldn't Asterisk call chdir("/") when becoming a daemon?
Tzafrir Cohen
tzafrir.cohen at xorcom.com
Wed Apr 22 18:30:22 CDT 2009
On Wed, Apr 22, 2009 at 10:33:44PM +0100, Chris Maciejewski wrote:
> so looks like asterisk is not calling chdir("/") anywhere, apart from
> res/res_musiconhold.c .
> AFAIK it is a recommended for all linux daemon processes to call
> chdir("/") when forking.
It originally did. But daemon(3) is now explicitly called with nochdir=1
to simplify dumping cores.
--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
More information about the asterisk-dev
mailing list