Re: STDERR_FILENO on HP-UX

2011-06-12 Thread Bruno Haible
James Youngman wrote: > > This is a security (mis)feature of HP-UX. > > I noticed it with closeout-related tests a few years ago. > > I believe this anticipates an upcoming POSIX change: > http://austingroupbugs.net/view.php?id=173 Thanks for this info. I'm updating the comments: 2011-06-12 Br

Re: STDERR_FILENO on HP-UX

2011-06-10 Thread James Youngman
On Thu, Jun 9, 2011 at 11:01 AM, Jim Meyering wrote: > Bruno Haible wrote: >> Apparently, although fd 2 was closed in the parent process, it is open again >> in the child process. This must happen in the exec* calls, since posix_spawn > > This is a security (mis)feature of HP-UX. > I noticed it w

Re: STDERR_FILENO on HP-UX

2011-06-09 Thread Jim Meyering
Bruno Haible wrote: > On HP-UX 11.31, I'm seeing this test failure: > > test-spawn-pipe-child.c:99: assertion failed > test-spawn-pipe.sh: iteration 4 failed > test-spawn-pipe-child.c:99: assertion failed > test-spawn-pipe.sh: iteration 5 failed > test-spawn-pipe-child.c:99: assertion fai

Re: STDERR_FILENO on HP-UX

2011-06-09 Thread Bastien ROUCARIES
On Thu, Jun 9, 2011 at 11:44 AM, Bruno Haible wrote: > On HP-UX 11.31, I'm seeing this test failure: > >  test-spawn-pipe-child.c:99: assertion failed >  test-spawn-pipe.sh: iteration 4 failed >  test-spawn-pipe-child.c:99: assertion failed >  test-spawn-pipe.sh: iteration 5 failed >  test-spawn-p

STDERR_FILENO on HP-UX

2011-06-09 Thread Bruno Haible
On HP-UX 11.31, I'm seeing this test failure: test-spawn-pipe-child.c:99: assertion failed test-spawn-pipe.sh: iteration 4 failed test-spawn-pipe-child.c:99: assertion failed test-spawn-pipe.sh: iteration 5 failed test-spawn-pipe-child.c:99: assertion failed test-spawn-pipe.sh: iterati