summaryrefslogtreecommitdiff
path: root/src/base/time.hh
diff options
context:
space:
mode:
authorAndreas Sandberg <andreas@sandberg.pp.se>2013-11-29 14:35:36 +0100
committerAndreas Sandberg <andreas@sandberg.pp.se>2013-11-29 14:35:36 +0100
commit9c57d5b5a66df60f77d1209f6660e4986da4bf8e (patch)
treeb081dd2ebd6bccb433701f9ae62c5defd1314881 /src/base/time.hh
parent2823982a3cbd60a1b21db1a73b78440468df158a (diff)
downloadgem5-9c57d5b5a66df60f77d1209f6660e4986da4bf8e.tar.xz
base: Clean up signal handling
The PollEvent class dynamically installs a SIGIO and SIGALRM handler when a file handler is registered. Most signal handlers currently get registered in the initSignals() function. This changeset moves the SIGIO/SIGALRM handlers to initSignals() to live with the other signal handlers. The original code installs SIGIO and SIGALRM with the SA_RESTART option to prevent syscalls from returning EINTR. This changeset consistently uses this flag for all signal handlers to ensure that other signals that trigger asynchronous behavior (e.g., statistics dumping) do not cause undesirable EINTR returns.
Diffstat (limited to 'src/base/time.hh')
0 files changed, 0 insertions, 0 deletions