Skip to content

Commit

Permalink
Replace magic number: 4 -> EINTR
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshRosen committed Aug 2, 2014
1 parent 5495dff commit 5abbcb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pyspark/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def handle_sigchld(*args):
try:
ready_fds = select.select([0, listen_sock], [], [])[0]
except select.error as ex:
if ex[0] == 4:
if ex[0] == EINTR:
continue
else:
raise
Expand Down

0 comments on commit 5abbcb9

Please sign in to comment.