Skip to content

Commit 5abbcb9

Browse files
committed
Replace magic number: 4 -> EINTR
1 parent 5495dff commit 5abbcb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/pyspark/daemon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def handle_sigchld(*args):
120120
try:
121121
ready_fds = select.select([0, listen_sock], [], [])[0]
122122
except select.error as ex:
123-
if ex[0] == 4:
123+
if ex[0] == EINTR:
124124
continue
125125
else:
126126
raise

0 commit comments

Comments
 (0)