GitHub user jodersky opened a pull request:

    https://github.com/apache/spark/pull/12557

    Allow interrupting tasks in repl with Ctrl+C

    ## What changes were proposed in this pull request?
    
    Improve signal handling to allow interrupting running tasks from the REPL 
(with Ctrl+C).
    If no tasks are running or Ctrl+C is pressed twice, the signal is forwarded 
to the default handler resulting in the usual termination of the application.
    
    This PR is a rewrite of -- and therefore closes #8216 -- as per 
@piaozhexiu's request
    
    ## How was this patch tested?
    Signal handling is not easily testable therefore no unit tests were added. 
Nevertheless, the new functionality is implemented in a best-effort approach, 
soft-failing in case signals aren't available on a specific OS.
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jodersky/spark SPARK-10001-sigint

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/12557.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #12557
    
----
commit 0142eb103f76dd4e8fcc61d3e5653463b70457b5
Author: Jakob Odersky <[email protected]>
Date:   2016-04-21T03:10:10Z

    Allow interrupting tasks in repl with Ctrl+C

----


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to