[Installit-dev] "package manager " becomes "InstallIt"

Benedikt Meurer benedikt.meurer at unix-ag.uni-siegen.de
Thu Sep 8 17:15:34 CEST 2005


Benedikt Meurer wrote:
> Jannis Pohlmann wrote:
> 
>>>Use kill($PID, 0) rather than /proc/$PID and you're ok. Trust me, it's 
>>>really not worth the trouble with fcntl()/lockf() locking. And we're not 
>>>developing a critical database, so if a user manages to start two 
>>>instances of InstallIt, then he'll run into trouble and may remember to 
>>>read the documentation when he uses a software next time. ;-)
>>
>>i tried this (it's in SVN, see Core/LockFile and i2t for the usage). It
>>doesn't really work at all. What did you expect it to do?
> 
> 
> Just checked it. Seems to work fine, except that you still use /proc
> instead of kill().

And you shouldn't use negative exit codes, as on some platforms, that
may not only affect the exit code, but also the additional exit status
flags, which is certainly not what you want. Try to limit yourself to
the exit codes from 0 to 126.

Benedikt



More information about the Installit-dev mailing list