b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | --- a/src/switch_console.c |
| 2 | +++ b/src/switch_console.c |
| 3 | @@ -1052,10 +1052,12 @@ static void *SWITCH_THREAD_FUNC console_ |
| 4 | while (running) { |
| 5 | int32_t arg = 0; |
| 6 | |
| 7 | - if (getppid() == 1) { |
| 8 | - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "We've become an orphan, no more console for us.\n"); |
| 9 | - break; |
| 10 | - } |
| 11 | + // Parent PID is 1 when started by procd - so FS is not an orphan. |
| 12 | + // Plus we still want the output. |
| 13 | + //if (getppid() == 1) { |
| 14 | + // switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "We've become an orphan, no more console for us.\n"); |
| 15 | + // break; |
| 16 | + //} |
| 17 | |
| 18 | switch_core_session_ctl(SCSC_CHECK_RUNNING, &arg); |
| 19 | if (!arg) { |