{"action":"closed","issue":{"url":"https://api.github.com/repos/NewSpring/Norma/issues/210","labels_url":"https://api.github.com/repos/NewSpring/Norma/issues/210/labels{/name}","comments_url":"https://api.github.com/repos/NewSpring/Norma/issues/210/comments","events_url":"https://api.github.com/repos/NewSpring/Norma/issues/210/events","html_url":"https://github.com/NewSpring/Norma/issues/210","id":93092601,"number":210,"title":"Spawn each watcher in child process for safety","user":{"login":"jbaxleyiii","id":4967600,"avatar_url":"https://avatars.githubusercontent.com/u/4967600?v=3","gravatar_id":"","url":"https://api.github.com/users/jbaxleyiii","html_url":"https://github.com/jbaxleyiii","followers_url":"https://api.github.com/users/jbaxleyiii/followers","following_url":"https://api.github.com/users/jbaxleyiii/following{/other_user}","gists_url":"https://api.github.com/users/jbaxleyiii/gists{/gist_id}","starred_url":"https://api.github.com/users/jbaxleyiii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbaxleyiii/subscriptions","organizations_url":"https://api.github.com/users/jbaxleyiii/orgs","repos_url":"https://api.github.com/users/jbaxleyiii/repos","events_url":"https://api.github.com/users/jbaxleyiii/events{/privacy}","received_events_url":"https://api.github.com/users/jbaxleyiii/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-05T08:56:06Z","updated_at":"2015-07-07T23:40:14Z","closed_at":"2015-07-07T23:40:14Z","body":"When watching a large number of files, the underlying library of chokidar (which Norma uses for file watching) can sometimes segmentation fault. According to a comment on [this issue](https://github.com/paulmillr/chokidar/issues/219) spawing each watcher into it's own child process can help prevent exiting of the process because each watch is segmented and can be gracefully restarted on crash without killing the process. For example, [this repo](https://github.com/mcollina/chokidar-child).\r\n\r\nIts a really interesting idea that is worth a develop. Should benchmark before and after. It might be worth bringing back node cluster for this to multithread Norma on a few cores if available. Again benchmark"}}