Compare commits
34 Commits
ecfd20dba6
...
939f443e9b
Author | SHA1 | Date | |
---|---|---|---|
939f443e9b | |||
b15ba11f90 | |||
2204348a40 | |||
54c3689cf7 | |||
a152623b01 | |||
eef1fd24fb | |||
c83d4eafde | |||
f9abca1ffb | |||
28dee21de5 | |||
0814e1edeb | |||
3f7ee75681 | |||
98e76b35d6 | |||
3785f7941e | |||
41b0ee094f | |||
60542a42a5 | |||
ae8f6fbabd | |||
dfe8f6ed59 | |||
521208dd4b | |||
f174e286f2 | |||
40cc11bb1f | |||
2fc34fbc58 | |||
9f71c0cc2a | |||
cd30a32367 | |||
b448e7f206 | |||
1be7866d49 | |||
9291ad325c | |||
c8a490f927 | |||
c7bef46c39 | |||
89f3e411c9 | |||
d4bb9c61b6 | |||
e4ce41fc4c | |||
acb26ad856 | |||
6cc98b1dbc | |||
0b42018d8b |
@ -8,6 +8,7 @@
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
#include <luna/DebugLog.h>
|
||||
#include <os/Process.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/syscall.h>
|
||||
@ -92,9 +93,16 @@ namespace os
|
||||
Result<pid_t> Process::spawn(StringView path, Slice<StringView> args, bool search_in_path)
|
||||
{
|
||||
Vector<const char*> argv;
|
||||
for (const auto& arg : args) { TRY(argv.try_append(arg.chars())); }
|
||||
for (const auto& arg : args)
|
||||
{
|
||||
TRY(argv.try_append(arg.chars()));
|
||||
dbgln("os::Process:spawn() adding new argument: %s", arg.chars());
|
||||
}
|
||||
TRY(argv.try_append(nullptr));
|
||||
|
||||
dbgln("os::Process:spawn() invoking do_spawn(): path=%s, argv=%p, envp=%p", path.chars(),
|
||||
const_cast<char**>(argv.data()), environ);
|
||||
|
||||
return do_spawn(path.chars(), const_cast<char**>(argv.data()), environ, search_in_path);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user