diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-19 20:10:30 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-19 20:10:30 +0800 |
commit | 3be9884d277f0ce2235b801667d85ce57e41cb89 (patch) | |
tree | 7bde988c1d997ec5e7cc415e7a615eb964dae79f | |
parent | 5ec0b0c8dc4b9aa479f8010f7a94aa3d99b0aac5 (diff) | |
download | pttbbs-3be9884d277f0ce2235b801667d85ce57e41cb89.tar pttbbs-3be9884d277f0ce2235b801667d85ce57e41cb89.tar.gz pttbbs-3be9884d277f0ce2235b801667d85ce57e41cb89.tar.bz2 pttbbs-3be9884d277f0ce2235b801667d85ce57e41cb89.tar.lz pttbbs-3be9884d277f0ce2235b801667d85ce57e41cb89.tar.xz pttbbs-3be9884d277f0ce2235b801667d85ce57e41cb89.tar.zst pttbbs-3be9884d277f0ce2235b801667d85ce57e41cb89.zip |
* 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
-rw-r--r-- | daemon/logind/logind.c | 2 | ||||
-rw-r--r-- | 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(); |