udev_monitor.c: fix bad return value in udev_monitor_enable_receiving
This commit is contained in:
parent
f4b2b9331e
commit
32f9d14551
1 changed files with 1 additions and 1 deletions
|
|
@ -170,7 +170,7 @@ int udev_monitor_enable_receiving(struct udev_monitor *udev_monitor)
|
|||
return -1;
|
||||
}
|
||||
|
||||
return pthread_create(&udev_monitor->thread, NULL, handle_event, udev_monitor);
|
||||
return (pthread_create(&udev_monitor->thread, NULL, handle_event, udev_monitor) == 0) - 1;
|
||||
}
|
||||
|
||||
/* XXX NOT IMPLEMENTED */ int udev_monitor_set_receive_buffer_size(struct udev_monitor *udev_monitor, int size)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue