gri3-wm/testcases/lib
Daniel Mueller 3e34122de4 Perform proper cleanup for signals with 'Term' action (#3057)
Issue #3049 describes a case where terminating i3 by means of SIGTERM
causes it to leak the runtime directory and all its contents. There are
multiple issues at play: first, any cleanup handlers registered via
atexit are never invoked when a signal terminates the program (see
atexit(3)). Hence, the log SHM log cleanup performed in i3_exit is not
invoked in that case. Second, compared to the shutdown path for the
'exit' command, we do not unlink the UNIX domain socket we create,
causing it to be leaked as well. Third, a handler for SIGTERM is not
registered at all despite handle_signal claiming to be the handler for
all 'Term' signals.
This change addresses all three problems and results in a graceful exit
including cleanup to happen when we receive a signal with the default
action 'Term'. It addresses issue #3049.
2017-11-28 23:29:47 -08:00
..
i3test Synchronize with i3bar+i3, not just i3. 2017-09-30 13:04:20 +02:00
SocketActivation.pm tests: use i3_config arg instead of precisely one launch_with_config 2017-09-14 21:46:20 +02:00
StartXServer.pm Replace http:// with https:// where applicable 2017-09-24 10:19:07 +02:00
StatusLine.pm Replace http:// with https:// where applicable 2017-09-24 10:19:07 +02:00
TestWorker.pm tests: remove the (broken) exit_gracefully check 2017-09-14 21:46:20 +02:00
i3test.pm.in Perform proper cleanup for signals with 'Term' action (#3057) 2017-11-28 23:29:47 -08:00