GNOME Bugzilla – Bug 726879
Engine should be killed when Chess crashes, but this seems to be distro-dependent
Last modified: 2018-05-22 12:23:38 UTC
After forking to spawn a chess engine, we call prctl(PR_SET_PDEATHSIG, SIGTERM) to kill the chess engine. This works on Debian 7 but not on Fedora 20. It worked on Arch when I added the code two months ago. Possibly gnuchess 7 is catching SIGTERM and choosing to ignore it for some reason, but I'd wager that PR_SET_PDEATHSIG is just broken in the Fedora kernel.
(In reply to comment #0) > Possibly gnuchess 7 is catching SIGTERM and choosing to ignore it for some > reason, but I'd wager that PR_SET_PDEATHSIG is just broken in the Fedora > kernel. Possibly gnuchess *6.0.3* (there is no gnuchess 7). And this seems really unlikely, since Debian has 6.0.2.
PR_SET_PDEATHSIG works fine on Fedora 20 in a simple test program. And even changing SIGTERM to the unblockable SIGKILL doesn't cause gnuchess to stop, so we know it's not ignoring the signal.
Can confirm that for fedora 20 Linux maweki-desktop 3.13.10-200.fc20.x86_64 #1 SMP Mon Apr 14 20:34:16 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux $ gnuchess --version GNU Chess 6.0.3 Hit me when testing for https://bugzilla.gnome.org/show_bug.cgi?id=704990
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-chess/issues/17.