diff options
author | Fabian Groffen <grobian@gentoo.org> | 2022-02-06 13:21:53 +0100 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2022-02-06 13:21:53 +0100 |
commit | 8468afb97a92adb0c49aaff461bafc7fc0f72992 (patch) | |
tree | cc4350410ebc1bba2dac6307e6f29506cb459e4f /libq | |
parent | .github: first attempt at build/test automation to replace Travis (diff) | |
download | portage-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.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libq/xsystem.c b/libq/xsystem.c index e11172e6..e2dbc5e5 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) { |