[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#72547: [PATCH 9/9] posix.c: Set errno when pipe2 is not available an
From: |
Ludovic Courtès |
Subject: |
bug#72547: [PATCH 9/9] posix.c: Set errno when pipe2 is not available and flags provided. |
Date: |
Sun, 20 Oct 2024 21:19:21 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Tomas Volf <~@wolfsden.cz> 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;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#72547: [PATCH 9/9] posix.c: Set errno when pipe2 is not available and flags provided.,
Ludovic Courtès <=