You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
This simple script causes 100% CPU usage by parent process after reaching stdin's EOF:
if(process.argv[2]==='child'){console.log('child');setInterval(function(){},1000);// just sleep}else{console.log('parent');process.stdin.on('readable',function(){process.stdin.read();// read stdin until EOF});require('child_process').fork(__filename,['child']);}
% echo 1 | node bug.js
Checked on v0.10.12 (arch and ubuntu), v0.10.17 (arch and ubuntu) and v0.10.19 (arch)