this repo has no description
1
fork

Configure Feed

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

Add special env variable for launchd bugfixing/development/testing (it doesn't work just yet!)

+18 -1
+18 -1
src/startup/darling.c
··· 575 575 fprintf(stderr, "Cannot set gid_map for the init process: %s\n", strerror(errno)); 576 576 } 577 577 */ 578 + 579 + // This is for development only! 580 + if (getenv("TRY_LAUNCHD") != NULL) 581 + { 582 + int status = 0; 583 + waitpid(pid, &status, 0); 584 + } 578 585 579 586 // Here's where we resume the child 580 587 // if we enable user namespaces ··· 612 619 void darlingPreInit(void) 613 620 { 614 621 // TODO: Run /usr/libexec/makewhatis 615 - 622 + 623 + // This is for development only! 624 + if (getenv("TRY_LAUNCHD") != NULL) 625 + { 626 + // putenv("KQUEUE_DEBUG=1"); 627 + execl("/bin/mldr", "mldr!/sbin/launchd", "launchd", NULL); 628 + 629 + fprintf(stderr, "Failed to exec launchd: %s\n", strerror(errno)); 630 + abort(); 631 + } 632 + 616 633 // TODO: this is where we will exec() launchd in future. 617 634 // Instead, we just reap zombies. 618 635 while (1)