Compare commits
35 Commits
939f443e9b
...
ecfd20dba6
Author | SHA1 | Date | |
---|---|---|---|
ecfd20dba6 | |||
e748137209 | |||
80390a3ecc | |||
34dcf7f75f | |||
028e1f7ffb | |||
7a095d7a67 | |||
23b0fa3451 | |||
e9a27ef29a | |||
8cc9d41f27 | |||
bccc1f062f | |||
1d0093b451 | |||
db50eb74a4 | |||
e8a445fc98 | |||
481c757dac | |||
7eaa076910 | |||
71754ea7fe | |||
70494733ee | |||
dc0e0126fc | |||
91752f3c9d | |||
4cb1709ae2 | |||
06b792109a | |||
3da0a00b76 | |||
d0c5d5a565 | |||
cbd5b3a200 | |||
e77418f259 | |||
4c72015817 | |||
9b8cc476e1 | |||
1828a647fa | |||
778b85417c | |||
e4ba7e121f | |||
5e3647b7db | |||
90c849a38c | |||
b4d02da12d | |||
82b058a2d3 | |||
2e63b93e48 |
@ -8,7 +8,6 @@
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
#include <luna/DebugLog.h>
|
||||
#include <os/Process.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/syscall.h>
|
||||
@ -93,16 +92,9 @@ 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()));
|
||||
dbgln("os::Process:spawn() adding new argument: %s", arg.chars());
|
||||
}
|
||||
for (const auto& arg : args) { TRY(argv.try_append(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