projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-19981013-3
[rocksndiamonds.git]
/
src
/
netserv.c
diff --git
a/src/netserv.c
b/src/netserv.c
index 221c8ff9df0d388d633a9d81696356fa519e4cd8..b9dad16248cc83e0dcf4e6cbe2660f10c1a8e82f 100644
(file)
--- a/
src/netserv.c
+++ b/
src/netserv.c
@@
-41,7
+41,7
@@
static int clients = 0;
static int bots = 0;
static int onceonly = 0;
static int timetoplay = 0;
static int bots = 0;
static int onceonly = 0;
static int timetoplay = 0;
-static int daemon = 0;
+static int
is_
daemon = 0;
static int level = 5;
static int mode = -1;
static int paused = 0;
static int level = 5;
static int mode = -1;
static int paused = 0;
@@
-83,7
+83,7
@@
static fd_set fds;
static void syserr(char *s)
{
static void syserr(char *s)
{
- if (!daemon)
+ if (!
is_
daemon)
fprintf(stderr, "fatal: %s failed.\n", s);
exit(1);
}
fprintf(stderr, "fatal: %s failed.\n", s);
exit(1);
}
@@
-518,7
+518,7
@@
void NetworkServer(int port, int serveronly)
unsigned int len;
struct protoent *tcpproto;
struct timeval tv;
unsigned int len;
struct protoent *tcpproto;
struct timeval tv;
- int daemon = 0;
+ int
is_
daemon = 0;
#ifndef NeXT
struct sigaction sact;
#ifndef NeXT
struct sigaction sact;
@@
-558,7
+558,7
@@
void NetworkServer(int port, int serveronly)
listen(lfd, 5);
listen(lfd, 5);
- if (daemon)
+ if (
is_
daemon)
{
/* become a daemon, breaking all ties with the controlling terminal */
verbose = 0;
{
/* become a daemon, breaking all ties with the controlling terminal */
verbose = 0;