Process3.c 547 B

123456789101112131415161718192021
  1. /* -*- mode:c; c-file-style:"k&r"; c-basic-offset: 4; tab-width:4; indent-tabs-mode:nil; mode:auto-fill; fill-column:78; -*- */
  2. /* vim: set ts=4 sw=4 et tw=78 fo=cqt wm=0: */
  3. #include "pal.h"
  4. #include "pal_debug.h"
  5. #include "api.h"
  6. int main (int argc, char ** argv, char ** envp)
  7. {
  8. PAL_STR args[1] = { 0 };
  9. // Hack to differentiate parent from child
  10. if (argc == 1) {
  11. PAL_HANDLE child = DkProcessCreate(NULL, args);
  12. if (child)
  13. pal_printf("Create Process without Executable OK\n");
  14. }
  15. return 0;
  16. }