Unity Issue Tracker - Unity Server run time does not respond to SIGTERM and other linux signals correctly.
Fixed
UUM-1582
Unity Server run time does not respond to SIGTERM and other linux signals correctly.
Unity: Linux
Open
2021.2.X
2019.4.X
Fixed
2023.1.X
2022.1.X
2021.3.X
2020.3.X
Verified the expected results have landed to trunk c33d888c3758. Validated on Ubuntu 20.04
Verified these expected results are produced in 2022.1.13f1 on Ubuntu 20.04
Verified the fix has landed to 2021.3.11f1 651e05a8966e on Ubuntu 20.04
Verified the fix has landed to 2020.3/staging 7c19dc9acfda on Rocky Linux 8.6
How to reproduce:
1. Open the attached project (ApplicationQuit.zip)
2. Make sure the "SampleScene" is open
3. Press Ctrl+Shift+B to open the "Build Settings" window
4. Enable "Server Build"
5. Build the project
6. Run the built project in the terminal
7. In a separate terminal window run "htop"
8. In "htop" locate and select the project's process
9. Press F9 and press Enter on the "15 SIGTERM" signal to terminate the process
10. In the build's directory find the file that's name starts with "QUITFILE"
Expected result: the "QUITFILE" appears after the process has been terminated
Actual result: there is no "QUITFILE" present after the process terminated