From 8598511764e3d082937e81e885b58b79b09c41df Mon Sep 17 00:00:00 2001 From: shikokuchuo <53399081+shikokuchuo@users.noreply.github.com> Date: Sun, 2 Nov 2025 13:35:24 +0000 Subject: [PATCH 1/2] Relax nanonext_sleep_dur --- src/nanonext.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nanonext.h b/src/nanonext.h index 9176a2ffc..f574e9f6d 100644 --- a/src/nanonext.h +++ b/src/nanonext.h @@ -124,7 +124,7 @@ extern int R_interrupts_pending; #define NANONEXT_CHUNK_SIZE 67108864 // must be <= INT_MAX #define NANONEXT_STR_SIZE 40 #define NANONEXT_WAIT_DUR 1000 -#define NANONEXT_SLEEP_DUR 100 +#define NANONEXT_SLEEP_DUR 200 #define NANO_ALLOC(x, sz) \ (x)->buf = calloc(sz, sizeof(unsigned char)); \ if ((x)->buf == NULL) Rf_error("memory allocation failed"); \ From b35d718f8867a0b5686fe29ef5d9ffd5d6215fd7 Mon Sep 17 00:00:00 2001 From: shikokuchuo <53399081+shikokuchuo@users.noreply.github.com> Date: Sun, 2 Nov 2025 13:48:07 +0000 Subject: [PATCH 2/2] Document --- NEWS.md | 2 +- R/sync.R | 2 +- man/pipe_notify.Rd | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/NEWS.md b/NEWS.md index dd6fcab2f..982cb769f 100644 --- a/NEWS.md +++ b/NEWS.md @@ -2,7 +2,7 @@ #### Updates -* `pipe_notify(flag = tools::SIGTERM)` will now raise the signal with a 100ms grace period to allow a process to exit normally (#212). +* `pipe_notify(flag = tools::SIGTERM)` will now raise the signal with a 200ms grace period to allow a process to exit normally (#212). * `parse_url()` drops 'rawurl', 'host' and 'requri' from the output vector as these can be derived from the other parts. # nanonext 1.7.1 diff --git a/R/sync.R b/R/sync.R index e15e4fdc3..018b764eb 100644 --- a/R/sync.R +++ b/R/sync.R @@ -168,7 +168,7 @@ cv_signal <- function(cv) invisible(.Call(rnng_cv_signal, cv)) #' If a signal from the \pkg{tools} package, e.g. `tools::SIGINT`, or an #' equivalent integer value is supplied, this sets a flag and additionally #' raises this signal upon the flag being set. For `tools::SIGTERM`, the -#' signal is raised with a 100ms grace period to allow a process to exit +#' signal is raised with a 200ms grace period to allow a process to exit #' normally. #' #' @return Invisibly, zero on success (will otherwise error). diff --git a/man/pipe_notify.Rd b/man/pipe_notify.Rd index 32c2118a3..22cd517b4 100644 --- a/man/pipe_notify.Rd +++ b/man/pipe_notify.Rd @@ -24,7 +24,7 @@ signal, and causes any subsequent \code{\link[=wait]{wait()}} to return FALSE in If a signal from the \pkg{tools} package, e.g. \code{tools::SIGINT}, or an equivalent integer value is supplied, this sets a flag and additionally raises this signal upon the flag being set. For \code{tools::SIGTERM}, the -signal is raised with a 100ms grace period to allow a process to exit +signal is raised with a 200ms grace period to allow a process to exit normally.} } \value{