{ "id": "174300", "key": "DAEMON-288", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12519", "key": "DAEMON", "name": "Appcelerator Daemon" }, "fixVersions": [ { "id": "20870", "description": "", "name": "Appc Daemon 3.1.0", "archived": false, "released": true, "releaseDate": "2019-11-07" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-10-25T20:20:24.000+0000", "created": "2019-10-25T19:26:07.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2019-10-25T20:20:24.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "15049", "name": "appcd", "description": "Bootstrap, appcd CLI commands (start, stop, restart, exec, logcat, config, status)" }, { "id": "15612", "name": "appcd-nodejs" } ], "description": "When a process spawns {{appcd start}}, then that process is interrupted via CTRL-C (aka SIGINT), then the core daemon process receives the SIGINT also and shutsdown. The daemon should not be receiving the SIGINT.", "attachment": [], "flagged": false, "summary": "SIGINT triggered in core process", "creator": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "environment": null, "closedSprints": [ { "id": 1169, "state": "closed", "name": "2019 Sprint 22", "startDate": "2019-10-21T15:38:21.747Z", "endDate": "2019-11-03T15:38:00.000Z", "completeDate": "2019-11-04T18:36:57.022Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "452274", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "SIGINT is propagated to the spawned core process because it's not detached on macOS and Linux.\r\n\r\nThe core was set to not detach in this commit: https://github.com/appcelerator/appc-daemon/commit/00892d87a78e405c1173a6a2164ea9901b0d9b7b#diff-30dc100d38263dd48fd4dd7ae14e0f3c\r\n\r\n{code}\r\n// On macOS (and probably Linux), a detached process doesn't stick around to see\r\n// if the executable exited with an error, so we must not detach the process,\r\n// but rather disconnect it once the daemon is booted. On Windows, we have to\r\n// detach it to keep the process running and for some lucky reason, Node sticks\r\n// around to see if the executable errors.\r\ndetached: process.platform === 'win32' ? detached : false,\r\n{code}\r\n\r\nThis seemingly unknown behavior was actually caused by {{appcd-nodejs}} forcing all detached processes to be {{unref()}}'d which in turned caused the child process {{\"close\"}} event to never be emitted.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2019-10-25T19:54:48.000+0000", "updated": "2019-10-25T19:55:24.000+0000" }, { "id": "452275", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "PR: https://github.com/appcelerator/appc-daemon/pull/438", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2019-10-25T19:57:44.000+0000", "updated": "2019-10-25T19:57:44.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }