Github user HyukjinKwon commented on a diff in the pull request: https://github.com/apache/spark/pull/18320#discussion_r122606530 --- Diff: R/pkg/inst/worker/daemon.R --- @@ -47,8 +55,6 @@ while (TRUE) { close(inputCon) Sys.setenv(SPARKR_WORKER_PORT = port) try(source(script)) - # Set SIGUSR1 so that child can exit - tools::pskill(Sys.getpid(), tools::SIGUSR1) parallel:::mcexit(0L) --- End diff -- `mcexit` alone does not terminate the child. With terminal A: ```R R ``` With terminal B: ```bash watch -n 0.01 "ps -fe | grep /bin/exec/R" ``` with terminal A: ```R for(i in 0:100) { p <- parallel:::mcfork() if (inherits(p, "masterProcess")) { parallel:::mcexit(0L) } } ```
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org