From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9AA233857732; Fri, 14 Apr 2023 13:25:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9AA233857732 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1681478758; bh=Z1Jr5PLj34uru3N6EvCcGah98P7zMAdQAybrvfk33Tg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Pkq75Ugy0yaR0JX+4ZOU+sX2NclNTPylWAmPVNCfXUyE1f1GFSV9vLpfzcY5QoPRu YRGQAS4ORvJOVj7iP379YQNAvfsET2JqFLCgaLmlN+PM/GZctQufeb6Q93yAVDJEQ0 cE49/DOVnd95wv/EcSoNGzqAi5LkGSC/fUnHeqgs= From: "adhemerval.zanella at linaro dot org" To: glibc-bugs@sourceware.org Subject: [Bug libc/30349] Support returning a pidfd from posix_spawn() Date: Fri, 14 Apr 2023 13:25:57 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: adhemerval.zanella at linaro dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30349 --- Comment #4 from Adhemerval Zanella --- Another issue is if the new interface would be required to also return the pid_t from he spawned process. Returning it would allow it to work with the default wait interfaces (waitpid, etc.); and it would avoid the possible is= sue of using this interface with a kernel between 5.2 and 5.4 (since waitid only support for 5.4+). My take is to not support return the pid_t (since posix_spawn{p} already provides it), but now that we don't effoce kernel versions I don't have a g= ood solution for the case kernel does not support waitid (P_PIDFD). --=20 You are receiving this mail because: You are on the CC list for the bug.=