mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-21 00:38:56 +00:00
LibCore+JSSpecCompiler: Add option for Process::spawn() to use spawnp()
Add a boolean to ProcessSpawnOptions, `search_for_executable_in_path`, which when true, calls into posix_spawnp() instead of posix_spawn(). This defaults to false to maintain the existing behavior. The `path` field is renamed to `executable` because having two fields refer to "path" and mean different things seemed unnecessarily confusing.
This commit is contained in:
parent
48983a43b1
commit
071f7fd818
Notes:
sideshowbarker
2024-07-17 06:54:15 +09:00
Author: https://github.com/AtkinsSJ
Commit: 071f7fd818
Pull-request: https://github.com/SerenityOS/serenity/pull/22805
Reviewed-by: https://github.com/ADKaster ✅
3 changed files with 13 additions and 8 deletions
|
@ -29,7 +29,8 @@ struct OpenFile {
|
|||
}
|
||||
|
||||
struct ProcessSpawnOptions {
|
||||
ByteString path;
|
||||
ByteString executable;
|
||||
bool search_for_executable_in_path { false };
|
||||
Vector<ByteString> const& arguments = {};
|
||||
Optional<ByteString> working_directory = {};
|
||||
Vector<Variant<FileAction::OpenFile>> const& file_actions = {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue