Please file a bug; there are a couple problems in the new daemonizing
code, and some planned changes to keep track of.
Aaron
On Thu, 2006-03-16 at 03:54 +0300, Oleg Lapshin wrote:
> Hello
>
> There is such lines in (for example) imapd.c:
> SetMainSigHandler();
>
> if (no_daemonize) {
> get_config(&config);
> StartCliServer(&config);
> config_free();
> g_mime_shutdown();
> return 0;
> }
>
> server_daemonize(&config);
>
> /* We write the pidFile after daemonize because
> * we may actually be a child of the original process. */
> pidfile_create(pidFile, getpid());
>
> get_config(&config);
> do {
>
> and when no_daemonize is not set,
> server_daemonize is called with empty config variable
>
> As result I have file with name '$' in / (root of FS)
>
> Moving get_config(&config); before server_daemonize(&config);
> solve this problem.
>
> The same in lmtpd.c and timsieved.c
>