mirror of
https://github.com/clearlinux/graphene.git
synced 2026-09-03 12:21:37 +00:00
This feature doesn't seem to make much sense. Also, it was already broken: Pal/regression/Process3.c assumed uri==NULL means spawning the process without an executable, but PAL code interpreted this as "spawn caller's executable again". The documentation doesn't mention this special case, so it's hard to say which semantics was originally intended.
18 lines
365 B
C
18 lines
365 B
C
#include "api.h"
|
|
#include "pal.h"
|
|
#include "pal_debug.h"
|
|
|
|
int main(int argc, char** argv, char** envp) {
|
|
PAL_STR args[1] = {0};
|
|
|
|
// Hack to differentiate parent from child
|
|
if (argc == 1) {
|
|
PAL_HANDLE child = DkProcessCreate(pal_control.executable, args);
|
|
|
|
if (child)
|
|
pal_printf("Creating child OK\n");
|
|
}
|
|
|
|
return 0;
|
|
}
|