)]}' { "commit": "fc9e1764ae65b9420bc1bf8e26307c21f542357b", "tree": "519c82f3f5a1f1925e066ace75f047a299100104", "parents": [ "75c6f68dde6ddaa7b7e0579d5f62eaf0d661511b" ], "author": { "name": "Christophe Fergeau", "email": "cfergeau@redhat.com", "time": "Thu Jul 02 17:30:53 2015 +0200" }, "committer": { "name": "Nikias Bassen", "email": "nikias@gmx.li", "time": "Thu Jul 14 03:15:58 2016 +0200" }, "message": "Report pthread_kill/pthread_join errors in usbmuxd_unsubscribe\n\nIn order to avoid race condition between an usbmuxd_event_cb_t firing in\na different thread and usbmuxd_unsubscribe() being called, libusbmuxd\nusers must assume that once usbmuxd_unsubcribe() returns, no more\nusbmuxd_event_cb_t callbacks will fire, but also that those which were\nalready started when usbmuxd_unsubcribe() is called will have completed.\n\nusbmuxd_unsubcribe() tries to guarantee this, but\npthread_kill/pthread_join may fail, in which case this guarantee would\nnot hold. This commit makes sure an error is reported to the caller when\nwe get in this situation (though I\u0027m not really sure how the caller\ncould handle it).\n", "tree_diff": [ { "type": "modify", "old_id": "327746bbb3944da272b885aa6a1135912bb56ef7", "old_mode": 33188, "old_path": "src/libusbmuxd.c", "new_id": "2897da662bf62aeaaf99499b556de2d3bc61cb0f", "new_mode": 33188, "new_path": "src/libusbmuxd.c" } ] }