Re: posix_spawn (was: Bugs with execline/s6 documentation and skalibs functions using posix_spawn())

From: Casper Ti. Vector <caspervector_at_gmail.com>
Date: Thu, 29 Jun 2023 09:30:33 +0800

On Wed, Jun 28, 2023 at 09:40:48PM +0000, Laurent Bercot wrote:
> I pushed a workaround to the skalibs git.
> Could you please try a build on a machine that exhibits the early
> return behaviour and tell me if
> - the behaviour is correctly detected by ./configure (the last sysdep)

Yes, after changing `attrp' in tryposixspawnearlyreturn.c to `attr'.

> - the child_spawn*() family of functions now works properly even on
> this machine?

Partially, after an additional WEXITED is OR-ed with the options for
waitid() in child_spawn_workaround.c. When given an unexecutable path,
child_spawn() returns 0, but errno is unset.

> Also, can you please tell me what version of glibc these distribution
> versions are running?

glibc-2.17-317.el7.x86_64, from CentOS 7.9.2009.

-- 
My current OpenPGP key:
RSA4096/0x227E8CAAB7AA186C (expires: 2024.09.30)
7077 7781 B859 5166 AE07 0286 227E 8CAA B7AA 186C
Received on Thu Jun 29 2023 - 03:30:33 CEST

This archive was generated by hypermail 2.4.0 : Thu Jun 29 2023 - 03:31:10 CEST