On Mon, Jan 04, 1999 at 05:08:15PM +0100, Stefaan A Eeckels wrote:
> On 04-Jan-99 Mate Wierdl wrote:
> >  On Mon, Jan 04, 1999 at 01:03:14PM +0000, Sam wrote:
> > > 
> > > > : :    % /var/qmail/bin/qmail-queue
> > > > : :    ^Z
> > > > : :    Suspended
> > > > : :    % kill -9 %1
> > > > : :    [1]    Killed                 /var/qmail/bin/qmail-queue
> > > > : :    %
> > > > : :
> > > > : :There will be one more zero-length file, owned by qmail, without
> > > > : :any user identification whatsoever.  It is an exercise for the
> > > 
> > > qmail-queue is a setuid program.  Did UNIX change, while I was out of town,
> > > and you can now send signals to processes of different userids?
> >  
> >  Not only that, but the above works w/o the -9 flag.
> 
> IIRC, qmail-queue should not be called by
> someone wanting to submit mail (see doc/PIC*). 
> A better test would be to use qmail-inject:
> 
> /var/qmail# /var/qmail/bin/qmail-inject
> 
> [1]  +  2728 Suspended      /var/qmail/bin/qmail-inject
> /var/qmail# kill %1
> /var/qmail# 
> [1]    Terminated           /var/qmail/bin/qmail-inject
> /var/qmail# find . -size 0
> ./control/locals
> ./alias/.qmail-postmaster
> ./alias/.qmail-mailer-daemon
> ./alias/.qmail-root
> ./alias/Mailbox
> ./queue/lock/sendmutex
> ./queue/lock/trigger
> /var/qmail# 
> 
> There's no empty file. I tried it with partial messages, and
> there never are file droppings left in the queue. 
> But yes, if we are to be paranoid, qmail-queue should clean up
> when no message has been queued, or when it's interrupted by
> a signal that can be caught. 

And how to fix kill -9?

Greetz, Peter.
-- 
<squeezer> AND I AM GONNA KILL MIKE                |          Peter van Dijk
<squeezer> hardbeat, als je nog nuchter bent:      | [EMAIL PROTECTED]
<squeezer>   @date = localtime(time);              |  realtime security d00d
<squeezer>   $date[5] += 2000 if ($date[5] < 37);  | 
<squeezer>   $date[5] += 1900 if ($date[5] < 99);  |    -x- available -x-

Reply via email to