projects
/
idzebra-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
42cd12e
)
Do not write zebrasrv.pid in daemon mode
author
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 25 Oct 2007 07:43:13 +0000
(07:43 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 25 Oct 2007 07:43:13 +0000
(07:43 +0000)
index/zebrasrv.c
patch
|
blob
|
history
diff --git
a/index/zebrasrv.c
b/index/zebrasrv.c
index
f35c051
..
9629d41
100644
(file)
--- a/
index/zebrasrv.c
+++ b/
index/zebrasrv.c
@@
-1,4
+1,4
@@
-/* $Id: zebrasrv.c,v 1.19 2007-08-27 17:22:22 adam Exp $
+/* $Id: zebrasrv.c,v 1.20 2007-10-25 07:43:13 adam Exp $
Copyright (C) 1995-2007
Index Data ApS
Copyright (C) 1995-2007
Index Data ApS
@@
-737,7
+737,7
@@
static void bend_start (struct statserv_options_block *sob)
#ifdef WIN32
#else
#ifdef WIN32
#else
- if (!sob->inetd)
+ if (!sob->inetd && !sob->background)
{
char pidfname[4096];
struct flock area;
{
char pidfname[4096];
struct flock area;
@@
-784,7
+784,7
@@
static void bend_stop(struct statserv_options_block *sob)
#ifdef WIN32
#else
#ifdef WIN32
#else
- if (!sob->inetd && sob->handle)
+ if (!sob->inetd && !sob->background && sob->handle)
{
char pidfname[4096];
zebra_pidfname(sob->handle, pidfname);
{
char pidfname[4096];
zebra_pidfname(sob->handle, pidfname);