mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 12:05:15 +00:00
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.
This commit is contained in:
parent
3102d8e160
commit
d70aba6a11
Notes:
sideshowbarker
2024-07-17 21:30:04 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/SerenityOS/serenity/commit/d70aba6a11d Pull-request: https://github.com/SerenityOS/serenity/pull/11690 Reviewed-by: https://github.com/linusg ✅
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue