kou opened a new pull request, #229: URL: https://github.com/apache/arrow-flight-sql-postgresql/pull/229
Closes GH-228 `kill(-1, ...)` sends the signal to all processes that the calling process has permission to send signals to. So tests were sometimes killed by `SIGUSR1`. The server process copies `session->executorPID` to `localSession->peerPID` when `session->initialized` is `true`. But `session->executorPID` was set only by the main process after `WaitForBackgroundWorkerStartup()`. If the executor process set `session->initialized = true` before it, the server process copied `InvalidPid` (`-1`) and used it for `kill()`. The executor process sets `session->executorPID` by itself before it sets `session->initialized = true` with this change. This also adds `Processor::signal_process()` that does nothing for `InvalidPid` and uses it for `kill()` calls that didn't check `InvalidPid`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
