- Version: 12.17
- Platform: Linux 14.04.1-Ubuntu x86_64 GNU/Linux
- Subsystem: process
What steps will reproduce the bug?
I have this following script to spin up a noop process
const childProcess = require('child_process')
const code = `
process.title = 'noop-process';
setInterval(() => {}, 1000 * 1000);
console.log('ok');
`;
const subprocess = childProcess.spawn('node', ['-e', code], {
detached: true
});
console.log(subprocess.pid)
Then run ps -p pid -o comm
On linux node > 12.17, the COMMAND shows 'node', where on MAC node with any version or linux with node <=12.16 gives COMMAND noop-process
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior?
It should always show COMMAND is "noop-process"
What do you see instead?
Additional information
What steps will reproduce the bug?
I have this following script to spin up a noop process
Then run
ps -p pid -o commOn linux node > 12.17, the COMMAND shows 'node', where on MAC node with any version or linux with node <=12.16 gives COMMAND noop-process
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior?
It should always show COMMAND is "noop-process"
What do you see instead?
Additional information