aboutsummaryrefslogtreecommitdiff
path: root/event.go
diff options
context:
space:
mode:
Diffstat (limited to 'event.go')
-rw-r--r--event.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/event.go b/event.go
index aa1be2d..1c8a94e 100644
--- a/event.go
+++ b/event.go
@@ -44,8 +44,8 @@ type SigEventCallback = C.sigev_callback_t
var SIGTERM = C.SIGTERM
var SIGINT = C.SIGINT
-func NewSigEvent(ec EventContext, cb SigEventCallback) SigEvent {
- return C.sigev_new(ec, cb)
+func NewSigEvent(ec EventContext, cb SigEventCallback, userdata rawptr_t) SigEvent {
+ return C.sigev_new(ec, cb, userdata)
}
func (self SigEvent) Add(sig int) { C.sigev_add(self, C.int(sig)) }