mirror of
https://github.com/openwrt/telephony.git
synced 2025-05-03 02:42:02 +08:00

- freetdm is now external - added the freeswitch library to InstallDev in preparation for freetdm package - add time64 change which always uses "lld" format and casts - various fixes related to general build and time64 especially - patches refreshed Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
20 lines
661 B
Diff
20 lines
661 B
Diff
--- a/src/switch_console.c
|
|
+++ b/src/switch_console.c
|
|
@@ -1052,10 +1052,12 @@ static void *SWITCH_THREAD_FUNC console_
|
|
while (running) {
|
|
int32_t arg = 0;
|
|
|
|
- if (getppid() == 1) {
|
|
- switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "We've become an orphan, no more console for us.\n");
|
|
- break;
|
|
- }
|
|
+ // Parent PID is 1 when started by procd - so FS is not an orphan.
|
|
+ // Plus we still want the output.
|
|
+ //if (getppid() == 1) {
|
|
+ // switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "We've become an orphan, no more console for us.\n");
|
|
+ // break;
|
|
+ //}
|
|
|
|
switch_core_session_ctl(SCSC_CHECK_RUNNING, &arg);
|
|
if (!arg) {
|