Opened 11 years ago

Closed 10 years ago

#6657 closed Bugs (fixed)

mac os x: signal_set does not notify the handler

Reported by: Thomas Sanchez Owned by: chris_kohlhoff
Milestone: To Be Determined Component: asio
Version: Boost 1.49.0 Severity: Problem
Keywords: asio signal_set signal Cc:

Description

When a signal_set is created with an io_service which was initialized with a concurrency_hint =1: No signals will be notified.

A file to reproduce the bug is attached.

I was not able to reproduce the bug on a Linux.

Attachments (1)

test.cpp (872 bytes ) - added by Thomas Sanchez 11 years ago.

Download all attachments as: .zip

Change History (4)

by Thomas Sanchez, 11 years ago

Attachment: test.cpp added

comment:1 by Thomas Sanchez <thomas.sanchz@…>, 11 years ago

Hum, I forgot to add that the bug was triggered on a mac os X Lion.

comment:2 by chris_kohlhoff, 10 years ago

(In [78739]) Use the thread's private_op_queue for handlers returned by the reactor task. This fixes a problem where signal_set handlers are not being called when the io_service's concurrency hint is set to 1. Refs #6657.

comment:3 by chris_kohlhoff, 10 years ago

Resolution: fixed
Status: newclosed

(In [78740]) Merge from trunk:

  • Add support for g++ 4.7 when compiling in C++11 mode. Update revision history. Fixes #6620.
  • Use the thread's private_op_queue for handlers returned by the reactor task. This fixes a problem where signal_set handlers are not being called when the io_service's concurrency hint is set to 1. Fixes #6657.
Note: See TracTickets for help on using tickets.