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.
Stefaan
--
PGP key available from PGP key servers (http://www.pgp.net/pgpnet/)
___________________________________________________________________
Perfection is reached, not when there is no longer anything to add,
but when there is no longer anything to take away. -- Saint-Exup�ry