aboutsummaryrefslogtreecommitdiff
path: root/pgo
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-12-26 00:29:40 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-12-26 00:29:40 +0000
commit8b0ef6aa85657e6b27904db45538f908f97683b7 (patch)
tree7fc5646a412a4074c35f7794a7114b4a2398ac68 /pgo
parentreaper: add optional callback (diff)
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.
Diffstat (limited to 'pgo')
-rw-r--r--pgo/pgo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pgo/pgo.c b/pgo/pgo.c
index 7874cc8d..120b8628 100644
--- a/pgo/pgo.c
+++ b/pgo/pgo.c
@@ -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)
{