freebsd-ports/comms/bforce-kst/files/patch-daemon.c
Pav Lucistnik 53e5d1a39c - Add patch to fix sending HUP to daemon
- Add patch to fix emsi traffic information
- Install docs and utils from contrib
- Fix pkg-message

PR:		ports/67557
Submitted by:	Andrey Slusar <vasallia@ukr.net> (maintainer)
2004-06-04 17:02:55 +00:00

17 lines
509 B
C

--- bforce/daemon.c.old Tue Jun 1 16:14:31 2004
+++ bforce/daemon.c Tue Jun 1 16:20:15 2004
@@ -772,10 +772,13 @@
fclose(pf);
if (hispid != 0) {
+ if (hispid == mypid)
+ return 0;
if (kill(hispid, 0) == 0) {
log("daemon_pidfile: another daemon exist. pid=%d", hispid);
return (-1);
- } else if(errno != ESRCH) {
+ }
+ if (errno != ESRCH) {
log("daemon_pidfile: error sending signal. pid=%d, errno=%d", hispid, errno);
return (-1);
}