Michael Tokarev
cdf7f13c31
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.
2009-05-18 14:34:24 +02:00
Guus Sliepen
ab6f76f6a9
Close the proper filedescriptor (if it exists).
2007-02-14 09:32:16 +00:00
Guus Sliepen
45fca3c723
Apply patch from Scott Lamb fixing some memory and resource leaks.
2007-02-14 09:21:34 +00:00
Guus Sliepen
5900c07fab
PIDs are of type pid_t, and use %ld when reading/writing them to the pidfile.
2003-10-06 16:13:08 +00:00
Guus Sliepen
714fb32d03
Fix compile errors and warnings.
2003-07-29 10:50:15 +00:00
Guus Sliepen
0e94541331
More checks for missing functions.
2003-07-28 22:06:09 +00:00
Guus Sliepen
e449d94cae
Big header file cleanup: everything that has to do with standard system
...
libraries is moved to system.h.
2003-07-17 15:06:27 +00:00
Guus Sliepen
161f917dd0
Fix compiler warnings.
2002-09-10 09:40:25 +00:00
Ivo Timmermans
4cb4a7d298
Set errno to 0 before trying to kill the other process.
2000-11-24 14:13:06 +00:00
Guus Sliepen
56bd0864e4
Porting to SunOS 5.8:
...
- Include all header files necessary
- Check for flock() function
2000-11-07 22:33:33 +00:00
Ivo Timmermans
1243156a5e
Initial revision
2000-03-26 00:33:07 +00:00