FreeBSD Bugzilla – Attachment 210853 Details for
Bug 243440
sysutils/tmux: Add upstream patch to fix bug that utempter doesn't work as is expected
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch file
sysutils_tmux.patch (text/plain), 1.31 KB, created by
Yasuhiro Kimura
on 2020-01-19 02:28:19 UTC
(
hide
)
Description:
Patch file
Filename:
MIME Type:
Creator:
Yasuhiro Kimura
Created:
2020-01-19 02:28:19 UTC
Size:
1.31 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 523401) >+++ Makefile (working copy) >@@ -3,6 +3,7 @@ > > PORTNAME= tmux > PORTVERSION= 3.0a >+PORTREVISION= 1 > CATEGORIES= sysutils > MASTER_SITES= https://github.com/tmux/tmux/releases/download/${PORTVERSION}/ > DISTFILES= ${DISTNAME}${EXTRACT_SUFX} >Index: files/patch-54efe33 >=================================================================== >--- files/patch-54efe33 (nonexistent) >+++ files/patch-54efe33 (working copy) >@@ -0,0 +1,32 @@ >+From 54efe337993b5571728a09b247c7f39d493659a8 Mon Sep 17 00:00:00 2001 >+From: Nicholas Marriott <nicholas.marriott@gmail.com> >+Date: Wed, 18 Dec 2019 15:58:06 +0000 >+Subject: [PATCH] Add back utempter code, reported by Peter Schellenbach. >+ >+--- >+ spawn.c | 9 +++++++++ >+ 1 file changed, 9 insertions(+) >+ >+diff --git spawn.c spawn.c >+index 54021817..51e4ae78 100644 >+--- spawn.c >++++ spawn.c >+@@ -433,6 +433,15 @@ spawn_pane(struct spawn_context *sc, char **cause) >+ _exit(1); >+ >+ complete: >++#ifdef HAVE_UTEMPTER >++ if (~new_wp->flags & PANE_EMPTY) { >++ xasprintf(&cp, "tmux(%lu).%%%u", (long)getpid(), new_wp->id); >++ utempter_add_record(new_wp->fd, cp); >++ kill(getpid(), SIGCHLD); >++ free(cp); >++ } >++#endif >++ >+ new_wp->pipe_off = 0; >+ new_wp->flags &= ~PANE_EXITED; >+ >+-- >+2.25.0 >+
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 243440
: 210853