Signal Handling with Swift (1st Attempt)

I need a high precision timer queue. I’m looking at standard *nix ways of implementing some of this – setitimer in particular. In preparation I wrote a very simple console swift app to test out the installation of a signal handler. There’s a long way to go, but the following worked without a hitch:

signal(SIGALRM, { (Int32) in


kill(getpid(), SIGALRM)

Leave a Reply

Your email address will not be published. Required fields are marked *