{"action":"created","issue":{"url":"https://api.github.com/repos/blaze/distributed/issues/99","repository_url":"https://api.github.com/repos/blaze/distributed","labels_url":"https://api.github.com/repos/blaze/distributed/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/blaze/distributed/issues/99/comments","events_url":"https://api.github.com/repos/blaze/distributed/issues/99/events","html_url":"https://github.com/blaze/distributed/issues/99","id":131355035,"number":99,"title":"Wait/sync doesn't break on KeyboardInterrupt","user":{"login":"mrocklin","id":306380,"avatar_url":"https://avatars.githubusercontent.com/u/306380?v=3","gravatar_id":"","url":"https://api.github.com/users/mrocklin","html_url":"https://github.com/mrocklin","followers_url":"https://api.github.com/users/mrocklin/followers","following_url":"https://api.github.com/users/mrocklin/following{/other_user}","gists_url":"https://api.github.com/users/mrocklin/gists{/gist_id}","starred_url":"https://api.github.com/users/mrocklin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrocklin/subscriptions","organizations_url":"https://api.github.com/users/mrocklin/orgs","repos_url":"https://api.github.com/users/mrocklin/repos","events_url":"https://api.github.com/users/mrocklin/events{/privacy}","received_events_url":"https://api.github.com/users/mrocklin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-04T13:57:24Z","updated_at":"2016-02-04T14:20:53Z","closed_at":null,"body":"Calling a function like `wait` that uses `sync` can not be broken with `KeyboardInterrupt`.  Two questions\r\n\r\n1.  How does one test keyboard interrupts?  Is there a way to simulate the signal?\r\n2.  What could be happening here?  We are waiting on a threading `Event` when the `KeyboardInterrupt` *should* interrupt us.  https://github.com/blaze/distributed/blob/master/distributed/utils.py#L104"},"comment":{"url":"https://api.github.com/repos/blaze/distributed/issues/comments/179864518","html_url":"https://github.com/blaze/distributed/issues/99#issuecomment-179864518","issue_url":"https://api.github.com/repos/blaze/distributed/issues/99","id":179864518,"user":{"login":"quasiben","id":1403768,"avatar_url":"https://avatars.githubusercontent.com/u/1403768?v=3","gravatar_id":"","url":"https://api.github.com/users/quasiben","html_url":"https://github.com/quasiben","followers_url":"https://api.github.com/users/quasiben/followers","following_url":"https://api.github.com/users/quasiben/following{/other_user}","gists_url":"https://api.github.com/users/quasiben/gists{/gist_id}","starred_url":"https://api.github.com/users/quasiben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quasiben/subscriptions","organizations_url":"https://api.github.com/users/quasiben/orgs","repos_url":"https://api.github.com/users/quasiben/repos","events_url":"https://api.github.com/users/quasiben/events{/privacy}","received_events_url":"https://api.github.com/users/quasiben/received_events","type":"User","site_admin":false},"created_at":"2016-02-04T14:20:53Z","updated_at":"2016-02-04T14:20:53Z","body":"For 1.) you can send the `signal.SIGINT` to the process"}}