mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-22 23:16:09 +00:00
FS-5238 --resolve
This commit is contained in:
parent
14e3570848
commit
e3ac7c50ac
23
src/switch.c
23
src/switch.c
@ -929,16 +929,6 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (nc) {
|
|
||||||
#ifdef WIN32
|
|
||||||
FreeConsole();
|
|
||||||
#else
|
|
||||||
if (!nf) {
|
|
||||||
daemonize(do_wait);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
switch (priority) {
|
switch (priority) {
|
||||||
case 2:
|
case 2:
|
||||||
set_realtime_priority();
|
set_realtime_priority();
|
||||||
@ -956,7 +946,6 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
switch_core_setrlimits();
|
switch_core_setrlimits();
|
||||||
|
|
||||||
|
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
if (runas_user || runas_group) {
|
if (runas_user || runas_group) {
|
||||||
if (change_user_group(runas_user, runas_group) < 0) {
|
if (change_user_group(runas_user, runas_group) < 0) {
|
||||||
@ -966,7 +955,19 @@ int main(int argc, char *argv[])
|
|||||||
return 255;
|
return 255;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
if (nc) {
|
||||||
|
#ifdef WIN32
|
||||||
|
FreeConsole();
|
||||||
#else
|
#else
|
||||||
|
if (!nf) {
|
||||||
|
daemonize(do_wait);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
#ifdef WIN32
|
||||||
if (win32_service) {
|
if (win32_service) {
|
||||||
/* Attempt to start service */
|
/* Attempt to start service */
|
||||||
SERVICE_TABLE_ENTRY dispatchTable[] = {
|
SERVICE_TABLE_ENTRY dispatchTable[] = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user