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

thomas fossati tho at koanlogic.com
Mon Oct 26 10:11:21 EDT 2009


Hi Mickael,

On Oct 26, 2009, at 3:02 PM, Mickael Auger wrote:
> 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 ?

we've just entered the last release stage.  Could you please wait  
until tomorrow morning so that we don't have to duplicate the work ?
Thank you very much !
t.




More information about the klone-users mailing list