paleolimbot commented on PR #14250:
URL: https://github.com/apache/arrow/pull/14250#issuecomment-1315604524

   Ok, here's the print output:
   
   ```
   > library(arrow, warn.conflicts = FALSE)
   arrow::SetSignalStopSource()
   Some features are not enabled in this build of Arrow. Run `arrow_info()` for 
more information.
   > tf <- tempfile()
   > write.csv(mtcars, tf, row.names = FALSE)
   > # before calling anything with the cancellation api, everything works
   > x <- parallel::mclapply(1:2, function(...) {
   +   read_csv_arrow(tf)
   + })
   arrow::RegisterCancellingSignalHandler({SIGINT});
   arrow::RegisterCancellingSignalHandler({SIGINT});
   arrow::UnregisterCancellingSignalHandler();
   stop_source_->Reset();
   arrow::UnregisterCancellingSignalHandler();
   stop_source_->Reset();
   > # invoke cancellation in the main process
   > x <- read_csv_arrow(tf)
   arrow::RegisterCancellingSignalHandler({SIGINT});
   arrow::UnregisterCancellingSignalHandler();
   stop_source_->Reset();
   > # this hangs
   > x <- parallel::mclapply(1:2, function(...) {
   +   read_csv_arrow(tf)
   + })
   arrow::RegisterCancellingSignalHandler({SIGINT});
   arrow::RegisterCancellingSignalHandler({SIGINT});
   ```


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

Reply via email to