2 * Copyright 2015, Rene Gollent, rene@gollent.com.
3 * Distributed under the terms of the MIT License.
6 #include "SignalInfo.h"
11 SignalInfo::SignalInfo()
16 memset(&fHandler
, 0, sizeof(fHandler
));
20 SignalInfo::SignalInfo(const SignalInfo
& other
)
22 fSignal(other
.fSignal
),
23 fDeadly(other
.fDeadly
)
25 memcpy(&fHandler
, &other
.fHandler
, sizeof(fHandler
));
29 SignalInfo::SignalInfo(int signal
, const struct sigaction
& handler
,
35 memcpy(&fHandler
, &handler
, sizeof(fHandler
));
40 SignalInfo::SetTo(int signal
, const struct sigaction
& handler
, bool deadly
)
45 memcpy(&fHandler
, &handler
, sizeof(fHandler
));