Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle SIGINT and exit repl #1342

Open
zzzzming95 opened this issue Apr 29, 2023 · 0 comments
Open

Handle SIGINT and exit repl #1342

zzzzming95 opened this issue Apr 29, 2023 · 0 comments

Comments

@zzzzming95
Copy link

I saw this pr (#1082), and I wanted to ask if I could implement it to terminate the repl when SIGINT(ctrl+c) is received?

Also it seems that the current SIGTERM signal (kill pid) cannot be handled? When I start repl, kill pid does not exit it.

Use the following code:

https://github.com/apache/spark/blob/1c713dbacc5074e7812ba48b4cebf51309e2fb84/connector/connect/client/jvm/src/main/scala/org/apache/spark/sql/application/ConnectRepl.scala#LL92C22-L92C22

@mgyucht @lihaoyi cc, thanks~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant