Project

General

Profile

Actions

Task #1380

closed

Enable signal processing in main()

Added by Alex Afanasyev over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Category:
Core
Target version:
Start date:
03/21/2014
Due date:
% Done:

100%

Estimated time:

Description

At least SIGINT and SIGTERM signals should be processed and NFD should be gracefully terminated.

Boost.Signal can be used for the implementation:

boost::asio::signal_set signalSet(<ioService>, SIGINT, SIGTERM);
signalSet.async_wait(callback);
Actions

Also available in: Atom PDF