Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage-utils:master commit in: libq/
Date: Sun, 06 Feb 2022 12:22:58
Message-Id: 1644150113.8468afb97a92adb0c49aaff461bafc7fc0f72992.grobian@gentoo
1 commit: 8468afb97a92adb0c49aaff461bafc7fc0f72992
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 6 12:21:53 2022 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 6 12:21:53 2022 +0000
6 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=8468afb9
7
8 libq/xsystem: avoid using obsolete vfork()
9
10 Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
11
12 libq/xsystem.c | 5 +++--
13 1 file changed, 3 insertions(+), 2 deletions(-)
14
15 diff --git a/libq/xsystem.c b/libq/xsystem.c
16 index e11172e..e2dbc5e 100644
17 --- a/libq/xsystem.c
18 +++ b/libq/xsystem.c
19 @@ -1,8 +1,9 @@
20 /*
21 - * Copyright 2010-2019 Gentoo Foundation
22 + * Copyright 2010-2022 Gentoo Foundation
23 * Distributed under the terms of the GNU General Public License v2
24 *
25 * Copyright 2010-2016 Mike Frysinger - <vapier@g.o>
26 + * Copyright 2022- Fabian Groffen - <grobian@g.o>
27 */
28
29 #include "main.h"
30 @@ -24,7 +25,7 @@ void xsystem(const char *command)
31
32 void xsystembash(const char *command, int cwd)
33 {
34 - pid_t p = vfork();
35 + pid_t p = fork();
36 int status;
37
38 switch (p) {