startProcess() on Windows with poInteractive: Second call fails ("Alle Pipeinstanzen sind ausgelastet") #5179

Closed
trustable-code opened this Issue Jan 4, 2017 · 0 comments

Projects

None yet

1 participant

@trustable-code
Member
trustable-code commented Jan 4, 2017 edited

Example code:

import os
import osproc

proc openAndCloseNotepad() =
  var process = startProcess("notepad.exe", "", @[], nil, {poStdErrToStdOut, poInteractive})
  sleep(1000)
  process.kill

openAndCloseNotepad() # first call
openAndCloseNotepad() # second call

Result:
A Notepad window pops up once.
The second call raises the exception: "Alle Pipeinstanzen sind ausgelastet"

Expected result:
A Notepad window should popup two times.

Tested with Nim 0.15.02 and devel from 2016-01-05 on Windows 10 x64.

Without "poInteractive" it works.

@trustable-code trustable-code changed the title from startProcess() on Windows: Second call fails ("Alle Pipeinstanzen sind ausgelastet") to startProcess() on Windows with poInteractive: Second call fails ("Alle Pipeinstanzen sind ausgelastet") Jan 5, 2017
@Araq Araq added a commit that closed this issue Jan 7, 2017
@Araq Araq fixes #5179 92ecbc9
@Araq Araq closed this in 92ecbc9 Jan 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment