Opened 14 years ago

Closed 13 years ago

#26243 closed defect (worksforme)

tmux-1.3 hangs (libevent issue)

Reported by: aammarit@… Owned by: yeled@…
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: haspatch Cc:
Port: libevent

Description

System: 10.6.4 Xcode: 3.2.3

tmux keeps hanging if I put a #(command) in the status bar, after talking to the developer, he resolved the issue with a patch against libevent

patch:

Index: poll.c
===================================================================
RCS file: /cvs/src/lib/libevent/poll.c,v
retrieving revision 1.15
diff -u -p -r1.15 poll.c
--- poll.c	21 Apr 2010 20:02:40 -0000	1.15
+++ poll.c	19 Aug 2010 19:18:31 -0000
@@ -78,7 +78,7 @@ const struct eventop pollops = {
	poll_del,
	poll_dispatch,
	poll_dealloc,
-    0
+	1 /* need reinit */
};

static void *
Index: select.c
===================================================================
RCS file: /cvs/src/lib/libevent/select.c,v
retrieving revision 1.16
diff -u -p -r1.16 select.c
--- select.c	21 Apr 2010 21:02:47 -0000	1.16
+++ select.c	19 Aug 2010 19:18:24 -0000
@@ -91,7 +91,7 @@ const struct eventop selectops = {
	select_del,
	select_dispatch,
	select_dealloc,
-	0
+	1 /* need reinit */
};

static int select_resize(struct selectop *sop, int fdsz);

Attachments (3)

patch-Portfile.diff (669 bytes) - added by lperry (Perry Lee) 14 years ago.
patch-poll.c.diff (197 bytes) - added by lperry (Perry Lee) 14 years ago.
patch-select.c.diff (245 bytes) - added by lperry (Perry Lee) 14 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 14 years ago by tobypeterson

Cc: toby@… removed
Port: tmux removed

Apparently a libevent issue?

comment:2 Changed 14 years ago by jmroot (Joshua Root)

Cc: brett@… removed
Owner: changed from macports-tickets@… to brett@…

Changed 14 years ago by lperry (Perry Lee)

Attachment: patch-Portfile.diff added

Changed 14 years ago by lperry (Perry Lee)

Attachment: patch-poll.c.diff added

Changed 14 years ago by lperry (Perry Lee)

Attachment: patch-select.c.diff added

comment:3 Changed 14 years ago by lperry (Perry Lee)

I've attached patches that patch libevent according to what aammarit reported.

comment:4 Changed 13 years ago by yeled@…

Owner: changed from brett@… to yeled@…
Status: newassigned

tmux is now up to 1.5, can you test please?

could it be a duplicate of #29128 ?

comment:5 Changed 13 years ago by yeled@…

Resolution: worksforme
Status: assignedclosed

resolving - no update

Note: See TracTickets for help on using tickets.