Skip to content

Commit

Permalink
[rqd] Add workaround for PowerShell Exitcode. (#1028)
Browse files Browse the repository at this point in the history
  • Loading branch information
splhack committed Sep 12, 2021
1 parent 5a02230 commit 9290909
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rqd/rqd/rqcore.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
import rqd.rqutil


INT32_MAX = 2147483647
INT32_MIN = -2147483648

class FrameAttendantThread(threading.Thread):
"""Once a frame has been received and checked by RQD, this class handles
the launching, waiting on, and cleanup work related to running the
Expand Down Expand Up @@ -361,6 +364,10 @@ def runWindows(self):

# Find exitStatus and exitSignal
returncode = frameInfo.forkedCommand.returncode
if returncode < INT32_MIN:
returncode = 303
if returncode > INT32_MAX:
returncode = 304
frameInfo.exitStatus = returncode
frameInfo.exitSignal = returncode

Expand Down

0 comments on commit 9290909

Please sign in to comment.