login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
openbsd-tech
»
2010
»
August
»
26
Re: libevent signal whoopsie
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Gilles Chehade
Subject:
Re: libevent signal whoopsie
Date: Thursday, August 26, 2010 - 2:27 pm
On Thu, Aug 26, 2010 at 09:07:08PM +0100, Nicholas Marriott wrote:
quoted text
> hi > > libevent has this clever stuff to reinitialise signals if the backend > requires it after calling event_reinit() (typically called after > fork()). > > unfortunately, it isn't enabled for poll and select, so both parent and > child continue to use the same socketpair for signals. > > one byte is written into this socketpair to wake up the main event loop > on a signal, so there is an occasional race between the processes to > read this byte, causing the losing process to hang, blocked in recv(). > > this problem was seen by kili@ during the period tmux was switched to > poll, i'm pretty surprised others didn't see it as well. > > this is the fix upstream have decided to go with for now, enabling the > reinit code for all backends (all but poll and select already use it). > > ok? >
I haven't observed the issue but the diff is ok by me -- Gilles Chehade
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
libevent signal whoopsie
, Nicholas Marriott
, (Thu Aug 26, 1:07 pm)
Re: libevent signal whoopsie
, Gilles Chehade
, (Thu Aug 26, 2:27 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Jesse Barnes
Re: [stable] [BUG][PATCH] cpqphp: fix kernel NULL pointer dereference
Greg KH
[003/136] p54usb: add Zcomax XG-705A usbid
Magnus Damm
[PATCH 03/07] ARM: Use shared GIC entry macros on Realview
Oliver Neukum
Re: [Bug #13682] The webcam stopped working when upgrading from 2.6.29 to 2.6.30
Martin Schwidefsky
Re: [PATCH] optimized ktime_get[_ts] for GENERIC_TIME=y
git
:
Junio C Hamano
Re: Some advanced index playing
Jeff King
Re: confusion over the new branch and merge config
Robin Rosenberg
Re: cvs2svn conversion directly to git ready for experimentation
Linus Torvalds
git binary size...
Ævar Arnfjörð Bjarmason
Re: Challenge with Git-Bash
git-commits-head
:
Linux Kernel Mailing List
md: move allocation of ->queue from mddev_find to md_probe
Linux Kernel Mailing List
md: raid0: Represent zone->zone_offset in sectors.
Linux Kernel Mailing List
[ARM] S3C24XX: Add gpio_to_irq() facility
Linux Kernel Mailing List
md: raid0_make_request(): Replace local variable block by sector.
Linux Kernel Mailing List
md: Allow md devices to be created by name.
linux-netdev
:
kaber
[PATCH 07/12] netfilter: xtables: change hotdrop pointer to direct modification
Gerrit Renker
[PATCH 3/5] dccp ccid-2: Remove redundant sanity tests
David Miller
Re: [PATCH net-next-2.6] pcnet32: Remove redundant set of skb->dev
Gerrit Renker
[PATCH 4/5] dccp ccid-2: Simplify dec_pipe and rearming of RTO timer
Saikiran Madugula
[PATCH] Allow fragmentation of VLAN packets traversing a bridge.
freebsd-current
:
Ryan Stone