search for: r_pclose_timeout

Displaying 2 results from an estimated 2 matches for "r_pclose_timeout".

2024 Feb 15
1
certain pipe() use cases not working in r-devel
...e(x)' ...skip... write(5, "hello\n", 6) = -1 EBADF (Bad file descriptor) exit_group(0) = ? +++ exited with 0 +++ There is a comment saying "see timeout_wait for why not to use fclose", which I think references a different function, R_pclose_timeout(): >> Do not use fclose, because on Solaris it sets errno to "Invalid >> seek" when the pipe is already closed (e.g. because of timeout). >> fclose would not return an error, but it would set errno and the >> non-zero errno would then be reported by R's "...
2024 Feb 14
2
certain pipe() use cases not working in r-devel
Hello, I've noticed a specific type of pipe() usage that works in released R, but not in r-devel. In 4.3.2 on macOS, I can write to a connection returned by pipe(), i.e. "hello, world" prints here: > R.version.string [1] "R version 4.3.2 (2023-10-31)" > con <- pipe("cat") > writeLines("hello, world", con) hello, world But in r-devel on