1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

use correct LWS_NO_DAEMONIZE on test server

Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
Andy Green 2013-01-21 12:58:04 +08:00
parent bdd6bf3ccd
commit 5c54d622ff

View file

@ -491,7 +491,7 @@ static struct option options[] = {
{ "ssl", no_argument, NULL, 's' },
{ "interface", required_argument, NULL, 'i' },
{ "closetest", no_argument, NULL, 'c' },
#ifndef NO_DAEMONIZE
#ifndef LWS_NO_DAEMONIZE
{ "daemonize", no_argument, NULL, 'D' },
#endif
{ NULL, 0, 0, 0 }
@ -517,7 +517,7 @@ int main(int argc, char **argv)
unsigned int oldus = 0;
#endif
int debug_level = 7;
#ifndef NO_DAEMONIZE
#ifndef LWS_NO_DAEMONIZE
int daemonize = 0;
#endif
@ -526,7 +526,7 @@ int main(int argc, char **argv)
if (n < 0)
continue;
switch (n) {
#ifndef NO_DAEMONIZE
#ifndef LWS_NO_DAEMONIZE
case 'D':
daemonize = 1;
syslog_options &= ~LOG_PERROR;
@ -560,7 +560,7 @@ int main(int argc, char **argv)
}
}
#ifndef NO_DAEMONIZE
#ifndef LWS_NO_DAEMONIZE
/*
* normally lock path would be /var/lock/lwsts or similar, to
* simplify getting started without having to take care about