Changeset View
Changeset View
Standalone View
Standalone View
scripts/daemon/launch_daemon.php
| Show All 14 Lines | foreach ($bootloader->getAllLibraries() as $library) { | ||||
| if ($library == 'phutil') { | if ($library == 'phutil') { | ||||
| // No need to load libphutil, it's necessarily loaded implicitly by the | // No need to load libphutil, it's necessarily loaded implicitly by the | ||||
| // daemon itself. | // daemon itself. | ||||
| continue; | continue; | ||||
| } | } | ||||
| $flags[] = '--load-phutil-library='.phutil_get_library_root($library); | $flags[] = '--load-phutil-library='.phutil_get_library_root($library); | ||||
| } | } | ||||
| $umask_octal = PhabricatorEnv::getEnvConfig('phd.umask'); | |||||
| if (! empty($umask_octal)) { | |||||
| umask(octdec($umask_octal)); | |||||
| } | |||||
| // Add more flags. | // Add more flags. | ||||
| array_splice($argv, 2, 0, $flags); | array_splice($argv, 2, 0, $flags); | ||||
| $overseer = new PhutilDaemonOverseer($argv); | $overseer = new PhutilDaemonOverseer($argv); | ||||
| $overseer->run(); | $overseer->run(); | ||||