diff options
| author | Maxime Coste <mawww@kakoune.org> | 2024-10-22 21:34:31 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2024-10-22 21:34:31 +1100 |
| commit | b96e500ddb27f78f2478e69836d6502d4fdbe9c0 (patch) | |
| tree | 2a0954602876322555bb681d5708a54a4c555193 /src/main.cc | |
| parent | 7b18d5e1be5131f3afeff7c9fcc12fd01dfa9422 (diff) | |
Fork server to background on <c-z> if session is daemonized
Fixes #4957
Diffstat (limited to 'src/main.cc')
| -rw-r--r-- | src/main.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cc b/src/main.cc index 5eb30bc6..ec2b80bd 100644 --- a/src/main.cc +++ b/src/main.cc @@ -703,7 +703,8 @@ std::unique_ptr<UserInterface> create_local_ui(UIType ui_type) static SignalHandler old_handler = set_signal_handler(SIGTSTP, [](int sig) { if (ClientManager::instance().count() == 1 and - *ClientManager::instance().begin() == local_client) + *ClientManager::instance().begin() == local_client and + not Server::instance().is_daemon()) old_handler(sig); else { |
