{"action":"created","issue":{"url":"https://api.github.com/repos/JacksonGariety/gulp-nodemon/issues/77","labels_url":"https://api.github.com/repos/JacksonGariety/gulp-nodemon/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/JacksonGariety/gulp-nodemon/issues/77/comments","events_url":"https://api.github.com/repos/JacksonGariety/gulp-nodemon/issues/77/events","html_url":"https://github.com/JacksonGariety/gulp-nodemon/issues/77","id":92887353,"number":77,"title":"gulp-watch & gulp-nodemon","user":{"login":"georgschlenkhoff","id":2112017,"avatar_url":"https://avatars.githubusercontent.com/u/2112017?v=3","gravatar_id":"","url":"https://api.github.com/users/georgschlenkhoff","html_url":"https://github.com/georgschlenkhoff","followers_url":"https://api.github.com/users/georgschlenkhoff/followers","following_url":"https://api.github.com/users/georgschlenkhoff/following{/other_user}","gists_url":"https://api.github.com/users/georgschlenkhoff/gists{/gist_id}","starred_url":"https://api.github.com/users/georgschlenkhoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/georgschlenkhoff/subscriptions","organizations_url":"https://api.github.com/users/georgschlenkhoff/orgs","repos_url":"https://api.github.com/users/georgschlenkhoff/repos","events_url":"https://api.github.com/users/georgschlenkhoff/events{/privacy}","received_events_url":"https://api.github.com/users/georgschlenkhoff/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-07-03T14:34:59Z","updated_at":"2015-11-25T00:48:49Z","closed_at":null,"body":"I'm using `gulp-watch` package that starts also gulp-nodemon, like so:\r\n\r\n```\r\ngulp.task('gulp-nodemon', function() {\r\n  nodemon({\r\n    script: 'test/fixtures',\r\n    watch: 'test/fixtures',\r\n    ext: 'js json'\r\n  });\r\n});\r\n\r\ngulp.task('watch', ['gulp-nodemon'], function() {\r\n  gulp.start('browser-sync');\r\n  watch('app/**/*', function() {\r\n    browserSync.reload();\r\n  });\r\n```\r\n\r\nHowever, when I quit the gulp watch command with Ctrl + c, then nodemon process is still running. Is there a way how to cleanly exit the process?"},"comment":{"url":"https://api.github.com/repos/JacksonGariety/gulp-nodemon/issues/comments/159450126","html_url":"https://github.com/JacksonGariety/gulp-nodemon/issues/77#issuecomment-159450126","issue_url":"https://api.github.com/repos/JacksonGariety/gulp-nodemon/issues/77","id":159450126,"user":{"login":"theverything","id":1922957,"avatar_url":"https://avatars.githubusercontent.com/u/1922957?v=3","gravatar_id":"","url":"https://api.github.com/users/theverything","html_url":"https://github.com/theverything","followers_url":"https://api.github.com/users/theverything/followers","following_url":"https://api.github.com/users/theverything/following{/other_user}","gists_url":"https://api.github.com/users/theverything/gists{/gist_id}","starred_url":"https://api.github.com/users/theverything/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theverything/subscriptions","organizations_url":"https://api.github.com/users/theverything/orgs","repos_url":"https://api.github.com/users/theverything/repos","events_url":"https://api.github.com/users/theverything/events{/privacy}","received_events_url":"https://api.github.com/users/theverything/received_events","type":"User","site_admin":false},"created_at":"2015-11-25T00:48:49Z","updated_at":"2015-11-25T00:48:49Z","body":"Thank you for this thread I've been having this issue for the last couple weeks and couldn't figure out why.\r\n\r\nI used a modified version of @eliot-akira fix. Which seems to have removed the error.\r\n\r\n```\r\ngulp.task('server', function () {\r\n  nodemon({\r\n    script: './server.js',\r\n  })\r\n  .once('exit', function () {\r\n    console.log('Exiting the process');\r\n    process.exit();\r\n  });\r\n});\r\n```"}}