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{ 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"); \