[Klone-users] Use relative paths in kloned.conf

Mickael Auger mickael.auger at gmail.com
Mon Oct 26 10:02:01 EDT 2009


Hi Thomas,

 We wish have the possibilty to call daemon() with daemon(1, 0).
>>
>> ** My question : **
>>
>> Could you offer us an option in the main makefile as
>> "--enabled_chdir_daemon" to add the value 1 to daemon() function ?
>>
>
> I've just added a '-n' command line switch that, in pseudo-diff syntax :),
> does the following:
>
> +        case 'n':   /* don't chdir in daemon mode */
> +            ctx->nochdir = 1;
> +            break;
> +
>
>     /* daemonize if not -F */
>     if(ctx->daemon && !ctx->cgi)
> -        con_err_ifm(daemon(0, 0), "daemon error");
> +        con_err_ifm(daemon(ctx->nochdir, 0), "daemon error");
>
> That should both solve your problem and be a little more flexible than a
> setting which is performed once at configuration-time.  Isn't it ?
>
Yes, it's sure, it's a good solution.
Do you have a patch for me :) to test it ?

Thanks.

-- 
Mickaël AUGER
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://koanlogic.com/pipermail/klone-users/attachments/20091026/3a9e0f55/attachment.html


More information about the klone-users mailing list