Re: [Mimedefang] mimedfang processes not dying

2004-12-07 Thread zareh
[EMAIL PROTECTED]
> Hi all,
>
> I'm seeing a strange behavior in mimedefang, I can kill
> mimedefan-multiplexor but cannot kill mimedefang itself, other then
> sending it a kill -9, running linux kernel 2.4.26 with procps 3.2.1,
> mimedefang compiled using gcc 3.3.3 with glibc 2.3.3, here are the
> details:
>

[snipped for brevity ]

Sorry... for replying to my own post, but I spent a few hours looking for
more clues, heres what I've found, when mimedefang starts it spawns 2
child processes:

# pstree -p | grep mime
|-mimedefang(5268)---mimedefang(5269)---mimedefang(5270)

The parent is constantly doing 'select', the 1st child is doing 'poll' and
the 2nd child is in 'rt_sig' state.

# ps -Alw -y -H | grep mime
S   UID   PID   PPID  C PRI  NI  RSSSZ WCHAN  TTYTIME CMD
S   125   5268 10  69   0   760 1009  select ?   
00:00:00   mimedefang
S   125   5269  5268  0  69   0   760 1009  poll?   
00:00:00 mimedefang
S   125   5270  5269  0  69   0   760 1009  rt_sig ?   
00:00:00   mimedefang

Doing an strace on each process shows the same thing, except for the last
child, 5270 which doesnt seem to be doing anything at all:

# strace -p 5268
process 5268 attached - interrupt to quit
select(7,  [6], NULL,  [6],  {1,  27})  = 0 (Timeout)
select(7,  [6], NULL,  [6],  {5,  0} )  = 0 (Timeout)
select(7,  [6], NULL,  [6],  {5,  0} )  = 0 (Timeout)
etc...

#strace -p 5269
process 5269 attached - interrupt to quit
getppid()=0
poll{[{fd=4,  events=POLLIN}],  1, 2000)  =0
getppid()=0
poll{[{fd=4,  events=POLLIN}],  1, 2000)  =0
etc..

# strace -p 5270
process 5270 attached - interrupt to quit

and nothing is shown...

Now if I send a kill signal to the parent (5268) nothing occurs, but if I
kill the 2nd child, (5270), mimedefang shutsdown and goes away.

What does 'rt_sig' mean?

Has anyone seen this behavior before?

Can anyone help me with this please, I've tryed upgrading to kernel 2.4.28
rebuilding mimedefang v2.49, downgrading to 2.48...

I'm really at a loss here and I'm willing to try anything.

___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


[Mimedefang] mimedfang processes not dying

2004-12-06 Thread zareh
Hi all,

I'm seeing a strange behavior in mimedefang, I can kill
mimedefan-multiplexor but cannot kill mimedefang itself, other then
sending it a kill -9, running linux kernel 2.4.26 with procps 3.2.1,
mimedefang compiled using gcc 3.3.3 with glibc 2.3.3, here are the
details:

Using the init script from the EXAMPLES directory I started mimedefang, it
launced mimedefang-multiplexor along with 3 mimedefangs:

# /etc/rc.d/init.d/mimedefang start
Starting mimedefang-multiplexor:  
[  OK  ]
Starting mimedefang:  
 [  OK  ]

# ps -ef | grep mime

defang1943 1  0 11:40 ?00:00:00
/usr/bin/mimedefang-multiplexor -p
/var/spool/MIMEDefang/mimedefang-multiplexor.pid -m 2 -x 10 -U defang -b
600 -l -s /var/spool/MIMEDefang/mimedefang-multiplexor.sock
defang1956 1  0 11:40 ?00:00:00 /usr/bin/mimedefang -P
/var/spool/MIMEDefang/mimedefang.pid -m
/var/spool/MIMEDefang/mimedefang-multiplexor.sock -U defang -p
/var/spool/MIMEDefang/mimedefang.sock
defang1957  1956  0 11:40 ?00:00:00 /usr/bin/mimedefang -P
/var/spool/MIMEDefang/mimedefang.pid -m
/var/spool/MIMEDefang/mimedefang-multiplexor.sock -U defang -p
/var/spool/MIMEDefang/mimedefang.sock
defang1958  1957  0 11:40 ?00:00:00 /usr/bin/mimedefang -P
/var/spool/MIMEDefang/mimedefang.pid -m
/var/spool/MIMEDefang/mimedefang-multiplexor.sock -U defang -p
/var/spool/MIMEDefang/mimedefang.sock

So there is the mimedefang-multiplexor and 3 mimedefang processes running,
the multiplexor has process id 1943, and the 3 mimedfangs have 1956, 1957,
1958 as their process ids, looking into /var/spool/MIMEDefang/ for the
.pid files I see:

# cat mimedefang-multiplexor.pid
1943

# cat mimedfang.pid
1956

Process ids 1957 and 1958 are missing from mimedefang.pid file - so when I
try to stop mimedefang I get:

# /etc/rc.d/init.d/mimedefang stop
Shutting down mimedefang: 
  [  OK  ]
Shutting down mimedefang-multiplexor: 
 [  OK  ]

The mimedefang-multiplexor is gone, but the 3 mimedefang processes are
still there, and the .pid files are gone.

# ps -ef |grep mime
defang1956 1  0 11:40 ?00:00:00 /usr/bin/mimedefang -P
/var/spool/MIMEDefang/mimedefang.pid -m
/var/spool/MIMEDefang/mimedefang-multiplexor.sock -U defang -p
/var/spool/MIMEDefang/mimedefang.sock
defang1957  1956  0 11:40 ?00:00:00 /usr/bin/mimedefang -P
/var/spool/MIMEDefang/mimedefang.pid -m
/var/spool/MIMEDefang/mimedefang-multiplexor.sock -U defang -p
/var/spool/MIMEDefang/mimedefang.sock
defang1958  1957  0 11:40 ?00:00:00 /usr/bin/mimedefang -P
/var/spool/MIMEDefang/mimedefang.pid -m
/var/spool/MIMEDefang/mimedefang-multiplexor.sock -U defang -p
/var/spool/MIMEDefang/mimedefang.sock

When doing a kill the process does not die. Only a kill -9 kills mimedefang.
I'm running linux kernel 2.4.26 with procps 3.2.1, I compiled mimedefang
using gcc 3.3.3 with glibc 2.3.3, the configure line is simply:

./configure --prefix=/usr
make
make install

Running strace on its I just see the following:
select(7,  [6], NULL, [6], {5, 5}= 0 (Timeout)
select(7,  [6], NULL, [6], {5, 0}   = 0 (Timeout)
select(7,  [6], NULL, [6], {5, 0}   = 0 (Timeout)
select(7,  [6], NULL, [6], {5, 0}   = 0 (Timeout)

Nothing gets reported when I try to kill the process, it just continues to
print select.

What could be wrong?

___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang