Browse Source

actually close exited subprocess handles

fix-resizing
Wesley Kerfoot 5 years ago
parent
commit
4339f895d6
  1. 2
      src/nimwin.nim

2
src/nimwin.nim

@ -139,6 +139,7 @@ when isMainModule:
let processExited = processChan.tryRecv() let processExited = processChan.tryRecv()
if processExited.dataAvailable: if processExited.dataAvailable:
openProcesses[processExited.msg].close
openProcesses.del(processExited.msg) openProcesses.del(processExited.msg)
# TODO refactor using XPending or XCB? # TODO refactor using XPending or XCB?
@ -149,7 +150,6 @@ when isMainModule:
# For spawning a terminal we also want events for the root window # For spawning a terminal we also want events for the root window
if (ev.theType == KeyPress): if (ev.theType == KeyPress):
echo "Executing xterm"
let p = startTerminal() let p = startTerminal()
openProcesses[p.processID] = p openProcesses[p.processID] = p
spawn handleProcess(p) spawn handleProcess(p)

Loading…
Cancel
Save