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:
parent
bdd6bf3ccd
commit
5c54d622ff
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue