if ( tmppid && (tmppid != mypid) ) {
kill(tmppid,sig_num);
}
This should eliminate what you're seeing -- vpopmail calling kill() with 0 for the PID. We should find out why it's doing that though...
I changed it and it works now. Thanks.
Could you make one more temporary change and let me know what it does when you run it?
Change this:
tmppid = atoi(pid); if ( tmppid && (tmppid != mypid) ) { kill(tmppid,sig_num); }
to this:
tmppid = atoi(pid); printf ("pid=%s tmppid=%d\n", pid, tmppid); if ( tmppid && (tmppid != mypid) ) { kill(tmppid,sig_num); }
and after these two lines:
if ( strstr( tmpbuf1, name ) != NULL && strstr(tmpbuf1,"supervise")==NULL) {
add:
printf ("matched on '%s'\n", tmpbuf1);
Add or delete a domain and email me with what it prints. Thanks.
-- Tom Collins - [EMAIL PROTECTED] QmailAdmin: http://qmailadmin.sf.net/ Vpopmail: http://vpopmail.sf.net/ Info on the Sniffter hand-held Network Tester: http://sniffter.com/