Annotation of pkgsrc/lang/python35/patches/patch-Python_pylifecycle.c, revision 1.1

1.1     ! adam        1: $NetBSD$
        !             2: 
        !             3: NetBSD is also affected by bpo-30225.
        !             4: See bpo-33384: https://bugs.python.org/issue33384
        !             5: 
        !             6: --- Python/pylifecycle.c.orig  2019-03-17 23:47:59.000000000 +0000
        !             7: +++ Python/pylifecycle.c
        !             8: @@ -968,7 +968,7 @@ initsite(void)
        !             9:  static int
        !            10:  is_valid_fd(int fd)
        !            11:  {
        !            12: -#ifdef __APPLE__
        !            13: +#if defined(__APPLE__) || defined(__NetBSD__)
        !            14:      /* bpo-30225: On macOS Tiger, when stdout is redirected to a pipe
        !            15:         and the other side of the pipe is closed, dup(1) succeed, whereas
        !            16:         fstat(1, &st) fails with EBADF. Prefer fstat() over dup() to detect

CVSweb <webmaster@jp.NetBSD.org>