View | Details | Raw Unified | Return to bug 243440
Collapse All | Expand All

(-)Makefile (+1 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	tmux
4
PORTNAME=	tmux
5
PORTVERSION=	3.0a
5
PORTVERSION=	3.0a
6
PORTREVISION=	1
6
CATEGORIES=	sysutils
7
CATEGORIES=	sysutils
7
MASTER_SITES=	https://github.com/tmux/tmux/releases/download/${PORTVERSION}/
8
MASTER_SITES=	https://github.com/tmux/tmux/releases/download/${PORTVERSION}/
8
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}
9
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}
(-)files/patch-54efe33 (+32 lines)
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

Return to bug 243440