bug#72547: [PATCH 9/9] posix.c: Set errno when pipe2 is not available and flags provided.
Ludovic Courtès <[email protected]> Sun, 20 Oct 2024 21:19:21 +0200
| Newsgroups | gmane.lisp.guile.bugs |
|---|---|
| Message-ID | <[email protected]> |
Tomas Volf <[email protected]> skribis: > --- a/libguile/posix.c > +++ b/libguile/posix.c > @@ -282,7 +282,7 @@ SCM_DEFINE (scm_pipe2, "pipe", 0, 1, 0, > /* 'pipe2' cannot be emulated on systems that lack it: calling > 'fnctl' afterwards to set the relevant flags is not equivalent > because it's not atomic. */ > - rv = ENOSYS; > + rv = errno = ENOSYS; It doesn’t make much of a difference but I changed it to: rv = -1, errno = ENOSYS;