gri3-wm/testcases
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
..
lib Perform proper cleanup for signals with 'Term' action (#3057) 2017-11-28 23:29:47 -08:00
t Perform proper cleanup for signals with 'Term' action (#3057) 2017-11-28 23:29:47 -08:00
.gitignore Testcases: Use Xephyr instead of XDummy 2014-10-02 23:05:00 +02:00
Makefile.PL testcases/Makefile.PL: tell MakeMaker this is a pure-Perl distribution (#2922) 2017-09-10 11:25:43 +02:00
complete-run.pl.in tests: run under Xvfb by default (if available) (#2951) 2017-10-13 00:18:49 -07:00
i3-test.config Extend the fullscreen command 2014-12-10 20:42:52 +01:00
inject_randr1.5.c WIFEXITED needs sys/wait.h (#2989) 2017-09-25 09:11:15 -07:00
new-test Replace http:// with https:// where applicable 2017-09-24 10:19:07 +02:00
restart-state.golden
valgrind.supp Add valgrind suppression file to testcases 2014-03-10 17:37:41 +01:00