~ehmry/nim_genode

7bc281175e962a6c280d497a2eead1e58f529483 — Emery Hemingway 2 years ago 3f4ee06
Poll after signal dispatch
1 files changed, 2 insertions(+), 0 deletions(-)

M src/genode/signals.nim
M src/genode/signals.nim => src/genode/signals.nim +2 -0
@@ 8,6 8,7 @@
when not defined(genode) or defined(nimdoc):
  {.error: "Genode only module".}

from std/asyncdispatch import poll
import ../genode

from std/strutils import rsplit


@@ 69,3 70,4 @@ proc nimHandleSignal(p: pointer) {.exportc.} =
  let dispatch = cast[SignalDispatcher](p)
  doAssert(not dispatch.cb.isNil)
  dispatch.cb()
  poll(0)