summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibLine
diff options
context:
space:
mode:
authorAndrew Kaster <akaster@serenityos.org>2022-01-07 00:35:25 -0700
committerLinus Groh <mail@linusgroh.de>2022-01-07 11:02:30 +0100
commitd70aba6a11df6815510c4246a5fb58582634cbb4 (patch)
treeba6ec4a48833605a4e7490847ae5f9a785b9faa9 /Userland/Libraries/LibLine
parent3102d8e160bd61181dce395b425aea99e8381632 (diff)
downloadserenity-d70aba6a11df6815510c4246a5fb58582634cbb4.zip
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.
Diffstat (limited to 'Userland/Libraries/LibLine')
-rw-r--r--Userland/Libraries/LibLine/InternalFunctions.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibLine/InternalFunctions.cpp b/Userland/Libraries/LibLine/InternalFunctions.cpp
index 00c39badeb..9286caa46b 100644
--- a/Userland/Libraries/LibLine/InternalFunctions.cpp
+++ b/Userland/Libraries/LibLine/InternalFunctions.cpp
@@ -553,10 +553,10 @@ void Editor::edit_in_external_editor()
};
Vector<const char*> args { editor_command, file_path, nullptr };
- auto pid = vfork();
+ auto pid = fork();
if (pid == -1) {
- perror("vfork");
+ perror("fork");
return;
}