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
On Linux calling waitForExit() with timeout on a process that already exited will hang until the timeout expires.
The following program shows the issue:
import osproc, os, times
const filename =whendefined(Windows): "tafalse.exe"else: "tafalse"let dir =getCurrentDir() /"tests"/"osproc"doAssertfileExists(dir / filename)
var p =startProcess(filename, dir)
doAssert(waitForExit(p) ==QuitFailure)
p =startProcess(filename, dir)
os.sleep(1000) # make sure process has exited alreadylet atStart =getTime()
const msWait =2000try:
discardwaitForExit(p, msWait)
exceptOSError:
echo"OSException"# check that we don't have to wait msWait millisecondsdoAssert(getTime() < atStart +milliseconds(msWait))
The text was updated successfully, but these errors were encountered:
On Linux calling waitForExit() with timeout on a process that already exited will hang until the timeout expires.
The following program shows the issue:
The text was updated successfully, but these errors were encountered: