Fix busywait on OSX

Signed-off-by: Sean Ogden <positivelyskewed.sf@gmail.com>
correct signal behavior on OSX

Signed-off-by: Sean Ogden <positivelyskewed.sf@gmail.com>