diff options
author | Nikias Bassen | 2012-04-07 15:37:37 +0200 |
---|---|---|
committer | Nikias Bassen | 2012-04-07 15:37:37 +0200 |
commit | f0836404b382747aeba03ee2cae9c3f16420fb66 (patch) | |
tree | ea02ee3c2bfe0b2e8cdb9e91a7bac5c880e5fd3d /daemon/device.c | |
parent | fabab8cb80ea87419afa7a1ccf4627e5e56da5e5 (diff) | |
download | usbmuxd-f0836404b382747aeba03ee2cae9c3f16420fb66.tar.gz usbmuxd-f0836404b382747aeba03ee2cae9c3f16420fb66.tar.bz2 |
libusbmuxd: use pthread_cancel to make usbmuxd_unsubscribe work properly
This actually only affects inotify-enabled builds. Since the faulty
SIGINT pthread 'killing' was replaced with a proper solution, this
fix is required for the situation where usbmuxd isn't initially
running or was terminated; in these cases libusbmuxd was hanging
inside a read() system call (waiting for an inotify event) causing
pthread_join in usbmuxd_unsubscribe() to wait infinitely.
Diffstat (limited to 'daemon/device.c')
0 files changed, 0 insertions, 0 deletions