diff options
author | Andreas Sandberg <andreas@sandberg.pp.se> | 2013-11-29 14:35:36 +0100 |
---|---|---|
committer | Andreas Sandberg <andreas@sandberg.pp.se> | 2013-11-29 14:35:36 +0100 |
commit | 9c57d5b5a66df60f77d1209f6660e4986da4bf8e (patch) | |
tree | b081dd2ebd6bccb433701f9ae62c5defd1314881 /src/base/time.hh | |
parent | 2823982a3cbd60a1b21db1a73b78440468df158a (diff) | |
download | gem5-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