Skip to content

Commit 4d39fdf

Browse files
authored
Increase pipe_notify() grace period (#214)
* Relax nanonext_sleep_dur * Document
1 parent a3acf40 commit 4d39fdf

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#### Updates
44

5-
* `pipe_notify(flag = tools::SIGTERM)` will now raise the signal with a 100ms grace period to allow a process to exit normally (#212).
5+
* `pipe_notify(flag = tools::SIGTERM)` will now raise the signal with a 200ms grace period to allow a process to exit normally (#212).
66
* `parse_url()` drops 'rawurl', 'host' and 'requri' from the output vector as these can be derived from the other parts.
77

88
# nanonext 1.7.1

R/sync.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ cv_signal <- function(cv) invisible(.Call(rnng_cv_signal, cv))
168168
#' If a signal from the \pkg{tools} package, e.g. `tools::SIGINT`, or an
169169
#' equivalent integer value is supplied, this sets a flag and additionally
170170
#' raises this signal upon the flag being set. For `tools::SIGTERM`, the
171-
#' signal is raised with a 100ms grace period to allow a process to exit
171+
#' signal is raised with a 200ms grace period to allow a process to exit
172172
#' normally.
173173
#'
174174
#' @return Invisibly, zero on success (will otherwise error).

man/pipe_notify.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/nanonext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ extern int R_interrupts_pending;
124124
#define NANONEXT_CHUNK_SIZE 67108864 // must be <= INT_MAX
125125
#define NANONEXT_STR_SIZE 40
126126
#define NANONEXT_WAIT_DUR 1000
127-
#define NANONEXT_SLEEP_DUR 100
127+
#define NANONEXT_SLEEP_DUR 200
128128
#define NANO_ALLOC(x, sz) \
129129
(x)->buf = calloc(sz, sizeof(unsigned char)); \
130130
if ((x)->buf == NULL) Rf_error("memory allocation failed"); \

0 commit comments

Comments
 (0)