aboutsummaryrefslogtreecommitdiff
path: root/libq
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2022-02-06 13:21:53 +0100
committerFabian Groffen <grobian@gentoo.org>2022-02-06 13:21:53 +0100
commit8468afb97a92adb0c49aaff461bafc7fc0f72992 (patch)
treecc4350410ebc1bba2dac6307e6f29506cb459e4f /libq
parent.github: first attempt at build/test automation to replace Travis (diff)
downloadportage-utils-8468afb97a92adb0c49aaff461bafc7fc0f72992.tar.gz
portage-utils-8468afb97a92adb0c49aaff461bafc7fc0f72992.tar.bz2
portage-utils-8468afb97a92adb0c49aaff461bafc7fc0f72992.zip
libq/xsystem: avoid using obsolete vfork()
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'libq')
-rw-r--r--libq/xsystem.c5
1 files 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 - <vapier@gentoo.org>
+ * Copyright 2022- Fabian Groffen - <grobian@gentoo.org>
*/
#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) {