this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Implement 'darling shutdown'

+15
+15
src/dyld/darling.c
··· 78 78 79 79 pidInit = getInitProcess(); 80 80 81 + if (strcmp(argv[1], "shutdown") == 0) 82 + { 83 + if (pidInit == 0) 84 + { 85 + fprintf(stderr, "Darling container is not running\n"); 86 + return 1; 87 + } 88 + 89 + // TODO: when we have a working launchd, 90 + // this is where we ask it to shut down nicely 91 + 92 + kill(pidInit, SIGKILL); 93 + return 0; 94 + } 95 + 81 96 // If prefix's init is not running, start it up 82 97 if (pidInit == 0) 83 98 {