Re: [Exim] Small change to exiwhat

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Nico Erfurth
Data:  
Para: Iain Price, exim-users
Assunto: Re: [Exim] Small change to exiwhat
Iain Price wrote:

> Anyway, anti commercial unix stuff aside, I think the only portable way
> is to use something like "kill `ps -ef|grep <process>|grep -v grep|cut
> -c10-15 `". Horrible innit (the cut statement is wrong too, check what
> the formatting is, and test it before you implement it on a platform :D


This is nearly the way exiwhat is using now, but that's a
race-condition. Exim's processes appear and disappear too fast, to make
this really work. You will get some strange error messages all the time,
because the process you want to kill is already gone. Or, the worst
case, another process with the same PID has spawned in the mean time,
and that receives the signal. You don't want to send SIGUSR1 to some
random process I think ;)

ciao