Project

General

Profile

Actions

Bug #409

open

Detection of pipe close with POLLHUP poll(3) event

Added by Christian Babeux almost 12 years ago. Updated about 9 years ago.

Status:
Confirmed
Priority:
Low
Assignee:
-
Target version:
Start date:
12/10/2012
Due date:
% Done:

0%

Estimated time:

Description

On Linux, the POLLHUP poll(3) event is used to signal that the other end
of a pipe has been disconnected. Due to poor wording in the Single UNIX
Specification, differents UNIX implementation signal the EOF with
conflicting poll events [1].

The current implementation of pipe close detection in lttng-tools uses
the POLLHUP event. This could lead to infinite looping in threads on
platforms such as OpenBSD/Cygwin.

Possible workaround in 060a32b279132ceeeef14b96a611077195a2ca46.

Creating this issue so we don't forget this limitation if we want eventually
want to support those platforms.

[1] - http://www.greenend.org.uk/rjk/tech/poll.html

Actions #1

Updated by Christian Babeux almost 12 years ago

  • Project changed from LTTng to LTTng-tools
Actions #2

Updated by David Goulet almost 12 years ago

  • Status changed from New to Confirmed

When clearly supporting OpenBSD, we should make sure we fix that. I'll keep this open so to remind us at that point.

Actions #3

Updated by Jérémie Galarneau about 9 years ago

  • Target version set to Wishlist
Actions

Also available in: Atom PDF