mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-16 08:21:20 -04:00
terminal: shutdown (or --hold) when the client process terminates
Shutdown the terminal when the client process terminates, not when the ptmx file descriptor is closed. This fixes an issue where the terminal remains running after the client process has terminated, if it spawned child processes that inherited the ptmx file descriptor.
This commit is contained in:
parent
c28bba7a55
commit
ce90480011
3 changed files with 28 additions and 6 deletions
|
|
@ -13,6 +13,7 @@
|
|||
|
||||
#include "async.h"
|
||||
#include "config.h"
|
||||
#include "reaper.h"
|
||||
#include "sixel.h"
|
||||
#include "user-notification.h"
|
||||
#include "vt.h"
|
||||
|
|
@ -134,6 +135,9 @@ notify_notify(const struct terminal *term, const char *title, const char *body)
|
|||
{
|
||||
}
|
||||
|
||||
void reaper_add(struct reaper *reaper, pid_t pid, reaper_cb cb, void *cb_data) {}
|
||||
|
||||
|
||||
int
|
||||
main(int argc, const char *const *argv)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue