timers and semtimedop(2)

Peter Jeremy peterjeremy at optushome.com.au
Sat Nov 3 03:50:44 PDT 2007


On Thu, Nov 01, 2007 at 01:41:10PM -0400, Michael B Allen wrote:
>I need semtimedop(2). I'm thinking I can just do a semop with a SIGINT maybe.

I presume you mean SIGALRM.

>Can someone suggest a good method for setting up a timer to deliver
>the signal? What sort of timers does FreeBSD offer?

Assuming you aren't planning on creating a new syscall: man setitimer
There's also kqueue EVFILT_TIMER but that is probably only useful if
you are already using kqueue for other purposes.

-- 
Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20071103/d1158d4a/attachment.pgp


More information about the freebsd-hackers mailing list