Am 05.06.2010 18:51, schrieb Theo de Raadt:
>> since it is possible to supply a config file to ifstated and run it
>> multiple times with different configs, I thought it nice for it to also
>> write a pidfile _and_ actually show in ps which arguments it got.
> 
> When possible, we don't use pidfiles.  You can't do anything with a
> pidfile.  It is a giant race.  You can't send a signal the process
> that is listed there, since it might in fact already have died and
> been replaced by something else.

Well, that makes sense. But what about not showing the arguments
ifstated was started with? Any reason to wipe them? It would really help
to identify the correct process when those are showed.

What I mean is:
setproctitle(NULL);

After removing that line and having ifstated show as "ifstated -f
/etc/ifstated-xyz.conf" (or similar) when started with a different
config, would also allow to use "p{grep,kill} -f" to work with the process.

Reply via email to