{"action":"created","issue":{"url":"https://api.github.com/repos/mpv-player/mpv/issues/2029","labels_url":"https://api.github.com/repos/mpv-player/mpv/issues/2029/labels{/name}","comments_url":"https://api.github.com/repos/mpv-player/mpv/issues/2029/comments","events_url":"https://api.github.com/repos/mpv-player/mpv/issues/2029/events","html_url":"https://github.com/mpv-player/mpv/issues/2029","id":85807119,"number":2029,"title":"mpv exits successfully when Ctrl^C'ed","user":{"login":"postmodern","id":12671,"avatar_url":"https://avatars.githubusercontent.com/u/12671?v=3","gravatar_id":"","url":"https://api.github.com/users/postmodern","html_url":"https://github.com/postmodern","followers_url":"https://api.github.com/users/postmodern/followers","following_url":"https://api.github.com/users/postmodern/following{/other_user}","gists_url":"https://api.github.com/users/postmodern/gists{/gist_id}","starred_url":"https://api.github.com/users/postmodern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/postmodern/subscriptions","organizations_url":"https://api.github.com/users/postmodern/orgs","repos_url":"https://api.github.com/users/postmodern/repos","events_url":"https://api.github.com/users/postmodern/events{/privacy}","received_events_url":"https://api.github.com/users/postmodern/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-06-06T19:56:09Z","updated_at":"2015-07-09T14:31:16Z","closed_at":"2015-06-10T21:19:21Z","body":"mpv exits with status code 0 (success) when Ctrl^C'ed. This causes issues in shell scripts. Instead, mpv should exit with [status code 130](http://www.tldp.org/LDP/abs/html/exitcodes.html)."},"comment":{"url":"https://api.github.com/repos/mpv-player/mpv/issues/comments/120001881","html_url":"https://github.com/mpv-player/mpv/issues/2029#issuecomment-120001881","issue_url":"https://api.github.com/repos/mpv-player/mpv/issues/2029","id":120001881,"user":{"login":"haasn","id":1149047,"avatar_url":"https://avatars.githubusercontent.com/u/1149047?v=3","gravatar_id":"","url":"https://api.github.com/users/haasn","html_url":"https://github.com/haasn","followers_url":"https://api.github.com/users/haasn/followers","following_url":"https://api.github.com/users/haasn/following{/other_user}","gists_url":"https://api.github.com/users/haasn/gists{/gist_id}","starred_url":"https://api.github.com/users/haasn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haasn/subscriptions","organizations_url":"https://api.github.com/users/haasn/orgs","repos_url":"https://api.github.com/users/haasn/repos","events_url":"https://api.github.com/users/haasn/events{/privacy}","received_events_url":"https://api.github.com/users/haasn/received_events","type":"User","site_admin":false},"created_at":"2015-07-09T14:31:16Z","updated_at":"2015-07-09T14:31:16Z","body":"I agree that SIGINT should not signal “I want the program to quit normally” but “something unexpected happened and I want it to fail and halt ASAP”. Receiving SIGINT *should* be treated like an error, IMO.\r\n\r\n(As for ctrl+c as a keybinding (eg. via input.conf), then I think it should mimic SIGINT, even if it isn't using SIGINT under the hood. Because that's what I, as a user, expect to happen when I hit ^C)"}}