| 43 | #endif |
| 44 | |
| 45 | bool InitShutdownState() |
| 46 | { |
| 47 | #ifndef WIN32 |
| 48 | std::optional<TokenPipe> pipe = TokenPipe::Make(); |
| 49 | if (!pipe) return false; |
| 50 | g_shutdown_r = pipe->TakeReadEnd(); |
| 51 | g_shutdown_w = pipe->TakeWriteEnd(); |
| 52 | #endif |
| 53 | return true; |
| 54 | } |
| 55 | |
| 56 | void StartShutdown() |
| 57 | { |
no test coverage detected