Github user pwendell commented on a diff in the pull request:
https://github.com/apache/spark/pull/640#discussion_r12351428
--- Diff: python/pyspark/daemon.py ---
@@ -74,6 +74,15 @@ def handle_sigchld(*args):
raise
signal.signal(SIGCHLD, handle_sigchld)
+ # Blocks until the socket is closed by draining the input stream
+ # until it raises an exception.
+ def waitSocketClose(sock):
+ try:
+ while True:
--- End diff --
As per our offline discussion this needs to handle the case where the
socket shuts down gracefully.
```
if sock.recv(4096) == "":
return
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---