commit: 8468afb97a92adb0c49aaff461bafc7fc0f72992 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> AuthorDate: Sun Feb 6 12:21:53 2022 +0000 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> 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 <grobian <AT> 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 - <vap...@gentoo.org> + * Copyright 2022- Fabian Groffen - <grob...@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) {