Skip to content

Commit a5bae2c

Browse files
committed
fixup: initVal_with_handle_signal deadloop(d9e0a00), os.wait*(f25a731)
1 parent 0f51997 commit a5bae2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pylib/Lib/os_impl/util/handle_signal.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ template initVal_with_handle_signal*[R](res: var R; resExpr){.dirty.} =
1010
1111
while true:
1212
res = resExpr
13-
if res >= 0 or isErr(EINTR):
13+
if res >= 0 or not isErr(EINTR):
1414
break
1515
async_err = PyErr_CheckSignals()
16-
if async_err != 0:
16+
if async_err == 0:
1717
break
1818
if res < 0:
1919
raiseErrno getErrno()

0 commit comments

Comments
 (0)