Opened 10 years ago

Last modified 10 years ago

#7608 new Bugs

Custom service of boost::asio hangs after being interrupted

Reported by: Acer Yang <yangacer@…> Owned by: chris_kohlhoff
Milestone: To Be Determined Component: asio
Version: Boost 1.52.0 Severity: Problem
Keywords: Cc:

Description

Custom service like logger_service that presented in boost::asio's example hangs after being added async_wait on signal_set. i.e. One has to hit Ctrl-C twice to stop a program.

FYI, my workaround is here.

Attachments (1)

hang_log.cpp (3.5 KB ) - added by Acer Yang <yangacer@…> 10 years ago.
Reproduce the bug.

Download all attachments as: .zip

Change History (2)

by Acer Yang <yangacer@…>, 10 years ago

Attachment: hang_log.cpp added

Reproduce the bug.

comment:1 by Acer Yang <yangacer@…>, 10 years ago

I forgot to mention system environment. The program is tested with gcc-4.6.3 on Ubuntu.

Note: See TracTickets for help on using tickets.