{"version":"1.0","type":"rich","title":"zombie processes nodejs","description":"This example demonstrates how to create a detached child process in Node.js that continues running independently of its parent. The code uses the `child_process.spawn` API to launch a new Node.js process executing `zombie.js`, with all standard streams (`stdin`, `stdout`, `stderr`) set to `'ignore'` and the `detached: true` option enabled. By calling `child.unref()`, the parent process removes the child from its event loop, allowing the parent to exit while the child persists as a zombie process. The example references Stack Overflow guidance and Node.js documentation on detached processes, illustrating a pattern for background tasks.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-be4924eab644ad32d033?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}