Closed phdru closed 1 year ago
Thanks! Will try this out soon and then hoping to cut a release.
OK, finally got around to testing this out in earnest. I'm thinking now that we shouldn't ship this and in fact probably don't need this at all but I'm interested to hear more about your use case. For two reasons:
setpriv --pdeathsig <SIG>
(and that in fact gives them the opportunity to choose themselves whether to use SIGTERM
or SIGKILL
).flatpak run -p
option to do this correctly though (by using prctl(PR_SET_PDEATHSIG)
on both the parent and the child processes).
b. Terminal editors launched via GNOME Terminal run into the fact that gnome-terminal
actually just calls out to gnome-terminal-server
which is what owns the editor process. So killing gnome-terminal
in this case won't actually affect the editor process. I'm not sure what other terminal emulators fall in this category.WDYT instead about turning this into a docs PR documenting the setpriv
prefix (would have to include caveats) and the flatpak run -p
option?
I'm thinking now that we shouldn't ship this
Ok.
WDYT instead about turning this into a docs PR documenting the
setpriv
prefix
Sure, go on.
Kill editors on exit using
setpriv --pdeathsig SIGTERM
. Linux-only.