Line 0
Link Here
|
|
|
1 |
From 54efe337993b5571728a09b247c7f39d493659a8 Mon Sep 17 00:00:00 2001 |
2 |
From: Nicholas Marriott <nicholas.marriott@gmail.com> |
3 |
Date: Wed, 18 Dec 2019 15:58:06 +0000 |
4 |
Subject: [PATCH] Add back utempter code, reported by Peter Schellenbach. |
5 |
|
6 |
--- |
7 |
spawn.c | 9 +++++++++ |
8 |
1 file changed, 9 insertions(+) |
9 |
|
10 |
diff --git spawn.c spawn.c |
11 |
index 54021817..51e4ae78 100644 |
12 |
--- spawn.c |
13 |
+++ spawn.c |
14 |
@@ -433,6 +433,15 @@ spawn_pane(struct spawn_context *sc, char **cause) |
15 |
_exit(1); |
16 |
|
17 |
complete: |
18 |
+#ifdef HAVE_UTEMPTER |
19 |
+ if (~new_wp->flags & PANE_EMPTY) { |
20 |
+ xasprintf(&cp, "tmux(%lu).%%%u", (long)getpid(), new_wp->id); |
21 |
+ utempter_add_record(new_wp->fd, cp); |
22 |
+ kill(getpid(), SIGCHLD); |
23 |
+ free(cp); |
24 |
+ } |
25 |
+#endif |
26 |
+ |
27 |
new_wp->pipe_off = 0; |
28 |
new_wp->flags &= ~PANE_EXITED; |
29 |
|
30 |
-- |
31 |
2.25.0 |
32 |
|