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
import{spawn}from"node-pty"constreproduce=async()=>{for(leti=0;i<=1000;i++){console.log(`the error is in ${i} iteration`)awaitspawn(`echo hello ${i}`,[],{name: 'xterm-color',cols: 80,rows: 30,cwd: process.env.HOME,env: process.envasany,})}}try{reproduce()}catch(error){console.error(error)}
The text was updated successfully, but these errors were encountered:
fadezak100
changed the title
posix_spawnp failed after calling spawn multiple times
[bug] posix_spawnp failed after calling spawn multiple times
Mar 6, 2024
Environment details
Issue description
I randomly get this error when calling
spawn
function multiple consecutive times:Here's a script to reproduce the problem.
The text was updated successfully, but these errors were encountered: