Re: using kevent to catch signals

2021-02-19 Thread Edgar Pettijohn
On Fri, Feb 19, 2021 at 06:49:45AM +0100, Sebastien Marie wrote: > On Thu, Feb 18, 2021 at 10:23:05PM -0600, Edgar Pettijohn wrote: > > I'm having trouble using kevent(2) to catch signals. Below is a sample > > program. It should catch SIGHUP and SIGUSR1 and just print it out. > > Instead when i se

Re: using kevent to catch signals

2021-02-18 Thread Sebastien Marie
On Thu, Feb 18, 2021 at 10:23:05PM -0600, Edgar Pettijohn wrote: > I'm having trouble using kevent(2) to catch signals. Below is a sample > program. It should catch SIGHUP and SIGUSR1 and just print it out. > Instead when i send the process sighup with `kill -SIGHUP $PID` it > exits and the word Ha

using kevent to catch signals

2021-02-18 Thread Edgar Pettijohn
I'm having trouble using kevent(2) to catch signals. Below is a sample program. It should catch SIGHUP and SIGUSR1 and just print it out. Instead when i send the process sighup with `kill -SIGHUP $PID` it exits and the word Hangup is writtin to the terminal. If I use `kill -SIGUSR1 $PID` the proces