From 3be9884d277f0ce2235b801667d85ce57e41cb89 Mon Sep 17 00:00:00 2001 From: piaip Date: Fri, 19 Jun 2009 12:10:30 +0000 Subject: * logind: setproctitle does not have prefix/postfix on Linux * regmaild: enable daemonize mode git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4672 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- daemon/logind/logind.c | 2 +- daemon/regmaild/regmaild.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/logind/logind.c b/daemon/logind/logind.c index 04ad99e5..4e282617 100644 --- a/daemon/logind/logind.c +++ b/daemon/logind/logind.c @@ -1880,7 +1880,7 @@ logattempt_daemon() // child here. g_logattempt_pipe = pipe_fds[0]; close(pipe_fds[1]); - setproctitle("[logattempts]"); + setproctitle(MY_SVC_NAME " [logattempts]"); // TODO change to batched processing while (toread(g_logattempt_pipe, &ctx, sizeof(ctx)) == sizeof(ctx)) diff --git a/daemon/regmaild/regmaild.c b/daemon/regmaild/regmaild.c index 4d887868..a5cc9138 100644 --- a/daemon/regmaild/regmaild.c +++ b/daemon/regmaild/regmaild.c @@ -363,7 +363,7 @@ int main(int argc, char *argv[]) if ( (sfd = tobind(iface_ip)) < 0 ) return 1; - // daemonize(BBSHOME "/run/regmaild.pid", NULL); + daemonize(BBSHOME "/run/regmaild.pid", NULL); regmaildb_open(&g_Db, EMAILDB_PATH); event_init(); -- cgit v1.2.3