]> git.meshlink.io Git - meshlink/commit
bugfix: initialize pid (as read from pidfile) to zero
authorMichael Tokarev <mjt@corpit.ru>
Mon, 18 May 2009 12:28:55 +0000 (16:28 +0400)
committerGuus Sliepen <guus@sliepen.eu.org>
Mon, 18 May 2009 12:34:24 +0000 (14:34 +0200)
commitcdf7f13c31310da0c40819fd812e19519bf4318c
treedd6324ce26504655e4b88d7d17ba249a434f09f1
parentec316aa32e8567395a88c4583007f01ffae008ce
bugfix: initialize pid (as read from pidfile) to zero

If we didn't read any number from a pid file, we'll return
an unitialized variable to the caller, and it will treat
that garbage as a pid of a process (possible to kill).

Fix that.
lib/pidfile.c