Subject: Developers of Sympa
List archive
- From: Hatuka*nezumi - IKEDA Soji <address@concealed>
- To: address@concealed
- Subject: [sympa-dev] daemonization
- Date: Sat, 19 Mar 2011 13:24:11 +0900
Hi folks,
Earthquake and corresponding neuclear crisis is disturbing life of
people on eastern Japan. But here on metropolitan area, there is
one comfort that the sky is a bit clearly blue --- as traffic was
decreased.
BTW I realized that daemonization codes of Sympa daemons seem
not to be working as expected. A test script is attached.
Below is the result on Linux (I checked only Linux 2.6 and Solaris 10).
For current coding,
$ perl test_daemon.pl CUR
PARENT: ioctl()
PARENT: setpgrp()
CHILD: PID:8108; PPID:8107; PGID:8107; SID:6270
PARENT: PID:8107; PPID:6270; PGID:8107; SID:6270
(sleep 3)
CHILD: PID:8108; PPID:1; PGID:8107; SID:6270
By my rewritten code,
$ perl test_daemon.pl IMP
CHILD: setsid()
PARENT: PID:8110; PPID:6270; PGID:8110; SID:6270
GRAND-CHILD: PID:8112; PPID:8111; PGID:8111; SID:8111
CHILD: PID:8111; PPID:1; PGID:8111; SID:8111
(sleep 3)
GRAND-CHILD: PID:8112; PPID:1; PGID:8111; SID:8111
I'm not familiar with daemon by Perl and wish to hear comments
from sympa-dev people.
In solidarity,
--
--- nezumi
Attachment:
test_daemon.pl
Description: Perl program
- [sympa-dev] daemonization, Hatuka*nezumi - IKEDA Soji, 03/19/2011
Archive powered by MHonArc 2.6.19+.