Changeset View
Changeset View
Standalone View
Standalone View
src/hgdaemon/ArcanistHgProxyServer.php
| Show First 20 Lines • Show All 440 Lines • ▼ Show 20 Lines | private function log($client, $message) { | ||||
| } else { | } else { | ||||
| $message = '[Server] '.$message; | $message = '[Server] '.$message; | ||||
| } | } | ||||
| echo $message."\n"; | echo $message."\n"; | ||||
| } | } | ||||
| private function daemonize() { | private function daemonize() { | ||||
| // Keep stdout if it's been redirected somewhere, otherwise shut it down. | // Keep stdout if it's been redirected somewhere, otherwise shut it down. | ||||
| $keep_stdout = false; | $keep_stdout = false; | ||||
| $keep_stderr = false; | $keep_stderr = false; | ||||
| if (function_exists('posix_isatty')) { | if (function_exists('posix_isatty')) { | ||||
| if (!posix_isatty(STDOUT)) { | if (!posix_isatty(STDOUT)) { | ||||
| $keep_stdout = true; | $keep_stdout = true; | ||||
| } | } | ||||
| if (!posix_isatty(STDERR)) { | if (!posix_isatty(STDERR)) { | ||||
| Show All 30 Lines | |||||