-
Notifications
You must be signed in to change notification settings - Fork 744
EBADF, bad file descriptor #180
Copy link
Copy link
Closed
Labels
Description
on window platform,use exec,eg:
options =
async: true
timeout: 1000*60*10
maxBuffer: 1024*1024*10
exec 'git init', options, (code, output) ->
console.log('Exit code:', code);
console.log('Program output:', output);
if code != 0
reject("Error: Git init failed:#{output}")
else
resolve()throw e:
Error: EBADF, bad file descriptor
at Error (native)
at Object.fs.writeSync (fs.js:559:20)
at SyncWriteStream.write (fs.js:1768:6)
at Socket.<anonymous> (c:\Users\comeontom\.atom\packages\atom-butterfly\node_modules\shelljs\src\exec.js:113:22)
at Socket.emit (events.js:129:20)
at readableAddChunk (_stream_readable.js:161:16)
at Socket.Readable.push (_stream_readable.js:125:10)
at Pipe.onread (net.js:522:20)
Reactions are currently unavailable