From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 67267158087 for ; Sun, 6 Feb 2022 12:22:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 71520E079E; Sun, 6 Feb 2022 12:22:57 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E7CA4E079E for ; Sun, 6 Feb 2022 12:22:56 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CC36C342DD9 for ; Sun, 6 Feb 2022 12:22:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EE61F1EF for ; Sun, 6 Feb 2022 12:22:53 +0000 (UTC) From: "Fabian Groffen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" Message-ID: <1644150113.8468afb97a92adb0c49aaff461bafc7fc0f72992.grobian@gentoo> Subject: [gentoo-commits] proj/portage-utils:master commit in: libq/ X-VCS-Repository: proj/portage-utils X-VCS-Files: libq/xsystem.c X-VCS-Directories: libq/ X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: 8468afb97a92adb0c49aaff461bafc7fc0f72992 X-VCS-Branch: master Date: Sun, 6 Feb 2022 12:22:53 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a6cfcbc5-bf77-4f49-9fbf-58864f3b2ef1 X-Archives-Hash: 14365ee8479b6b1125ec5b634c90b901 commit: 8468afb97a92adb0c49aaff461bafc7fc0f72992 Author: Fabian Groffen gentoo org> AuthorDate: Sun Feb 6 12:21:53 2022 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Sun Feb 6 12:21:53 2022 +0000 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=8468afb9 libq/xsystem: avoid using obsolete vfork() Signed-off-by: Fabian Groffen gentoo.org> libq/xsystem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libq/xsystem.c b/libq/xsystem.c index e11172e..e2dbc5e 100644 --- a/libq/xsystem.c +++ b/libq/xsystem.c @@ -1,8 +1,9 @@ /* - * Copyright 2010-2019 Gentoo Foundation + * Copyright 2010-2022 Gentoo Foundation * Distributed under the terms of the GNU General Public License v2 * * Copyright 2010-2016 Mike Frysinger - + * Copyright 2022- Fabian Groffen - */ #include "main.h" @@ -24,7 +25,7 @@ void xsystem(const char *command) void xsystembash(const char *command, int cwd) { - pid_t p = vfork(); + pid_t p = fork(); int status; switch (p) {