{"action":"created","issue":{"url":"https://api.github.com/repos/nginx/unit/issues/174","repository_url":"https://api.github.com/repos/nginx/unit","labels_url":"https://api.github.com/repos/nginx/unit/issues/174/labels{/name}","comments_url":"https://api.github.com/repos/nginx/unit/issues/174/comments","events_url":"https://api.github.com/repos/nginx/unit/issues/174/events","html_url":"https://github.com/nginx/unit/issues/174","id":368620837,"node_id":"MDU6SXNzdWUzNjg2MjA4Mzc=","number":174,"title":"Signal handling","user":{"login":"Jamim","id":5607572,"node_id":"MDQ6VXNlcjU2MDc1NzI=","avatar_url":"https://avatars0.githubusercontent.com/u/5607572?v=4","gravatar_id":"","url":"https://api.github.com/users/Jamim","html_url":"https://github.com/Jamim","followers_url":"https://api.github.com/users/Jamim/followers","following_url":"https://api.github.com/users/Jamim/following{/other_user}","gists_url":"https://api.github.com/users/Jamim/gists{/gist_id}","starred_url":"https://api.github.com/users/Jamim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jamim/subscriptions","organizations_url":"https://api.github.com/users/Jamim/orgs","repos_url":"https://api.github.com/users/Jamim/repos","events_url":"https://api.github.com/users/Jamim/events{/privacy}","received_events_url":"https://api.github.com/users/Jamim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-10T11:30:41Z","updated_at":"2018-10-10T11:35:09Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nI found some code at [src/nxt_worker_process.c](https://github.com/nginx/unit/blob/master/src/nxt_worker_process.c#L45-L46) that might be wrong:\r\n```c\r\n    nxt_event_signal(SIGQUIT, nxt_worker_process_sigterm_handler),\r\n    nxt_event_signal(SIGTERM, nxt_worker_process_sigquit_handler),\r\n```\r\n\r\nMeanwhile at [src/nxt_main_process.c](https://github.com/nginx/unit/blob/master/src/nxt_main_process.c#L72-L73):\r\n```c\r\n    nxt_event_signal(SIGQUIT, nxt_main_process_sigquit_handler),\r\n    nxt_event_signal(SIGTERM, nxt_main_process_sigterm_handler),\r\n```\r\n\r\nI suppose that handlers at `nxt_worker_process.c` were mixed up.\r\nCould someone take a look at this?\r\n\r\nThank you!"},"comment":{"url":"https://api.github.com/repos/nginx/unit/issues/comments/428538509","html_url":"https://github.com/nginx/unit/issues/174#issuecomment-428538509","issue_url":"https://api.github.com/repos/nginx/unit/issues/174","id":428538509,"node_id":"MDEyOklzc3VlQ29tbWVudDQyODUzODUwOQ==","user":{"login":"Jamim","id":5607572,"node_id":"MDQ6VXNlcjU2MDc1NzI=","avatar_url":"https://avatars0.githubusercontent.com/u/5607572?v=4","gravatar_id":"","url":"https://api.github.com/users/Jamim","html_url":"https://github.com/Jamim","followers_url":"https://api.github.com/users/Jamim/followers","following_url":"https://api.github.com/users/Jamim/following{/other_user}","gists_url":"https://api.github.com/users/Jamim/gists{/gist_id}","starred_url":"https://api.github.com/users/Jamim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jamim/subscriptions","organizations_url":"https://api.github.com/users/Jamim/orgs","repos_url":"https://api.github.com/users/Jamim/repos","events_url":"https://api.github.com/users/Jamim/events{/privacy}","received_events_url":"https://api.github.com/users/Jamim/received_events","type":"User","site_admin":false},"created_at":"2018-10-10T11:35:09Z","updated_at":"2018-10-10T11:35:09Z","author_association":"NONE","body":"By the way, what is the preferred method to stop `unit`?"}}
{"actor":{"display_login":"Jamim"}}