From d70aba6a11df6815510c4246a5fb58582634cbb4 Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Fri, 7 Jan 2022 00:35:25 -0700 Subject: [PATCH] LibLine: Replace call to vfork() with fork() We don't actually have a non-trivial vfork implementation, so just call fork(). As a bonus, vfork() is deprecated in XCode 13.1 when targeting macOS Big Sur, so this removes a blocker from updating our macOS CI version. --- Userland/Libraries/LibLine/InternalFunctions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibLine/InternalFunctions.cpp b/Userland/Libraries/LibLine/InternalFunctions.cpp index 00c39badebd..9286caa46b6 100644 --- a/Userland/Libraries/LibLine/InternalFunctions.cpp +++ b/Userland/Libraries/LibLine/InternalFunctions.cpp @@ -553,10 +553,10 @@ void Editor::edit_in_external_editor() }; Vector args { editor_command, file_path, nullptr }; - auto pid = vfork(); + auto pid = fork(); if (pid == -1) { - perror("vfork"); + perror("fork"); return; }