24 using Mono.Unix.Native;
40 private static UnixSignal sigterm, sigquit, sigint, sighup, sigusr1,
sigusr2;
42 private static readonly UnixSignal[] Signals =
44 sigint =
new UnixSignal(Signum.SIGINT),
45 sigterm =
new UnixSignal(Signum.SIGTERM),
46 sigquit =
new UnixSignal(Signum.SIGQUIT),
47 sighup =
new UnixSignal(Signum.SIGHUP),
48 sigusr1 =
new UnixSignal(Signum.SIGUSR1),
49 sigusr2 =
new UnixSignal(Signum.SIGUSR2)
59 i = UnixSignal.WaitAny(Signals, -1);
67 if (i < 0 || i >= Signals.Length)
69 log.UnknownSignal(Signals[i].Signum.ToString());
73 log.ReceivedSignal(Signals[i].Signum.ToString());
75 if (sigint.IsSet || sigterm.IsSet || sigquit.IsSet)
static UnixSignal sigusr2
static Signal Wait(string name, LogBase log)