Skip to content

Commit

Permalink
Add alert distribution list to the info that's logged when a Dump (-1…
Browse files Browse the repository at this point in the history
…0) singal is rec'd.
  • Loading branch information
shaneharter committed Aug 5, 2011
1 parent dd8750c commit 04debe1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Core/Daemon.php
Expand Up @@ -515,6 +515,7 @@ private function dump()
$x[] = "Daemon Mode: " . (int)$this->daemon();
$x[] = "Shutdown Signal: " . (int)$this->shutdown();
$x[] = "Verbose Mode: " . (int)$this->verbose();
$x[] = "Email On Error: " . implode(', ', $this->email_distribution_list);
$x[] = "Loaded Plugins: " . implode(', ', $this->plugins);
$x[] = "Memory Usage: " . memory_get_usage(true);
$x[] = "Memory Peak Usage: ". memory_get_peak_usage(true);
Expand Down
4 changes: 2 additions & 2 deletions Core/Lock/File.php
Expand Up @@ -24,7 +24,7 @@ public function setup()

private function filename()
{
return $this->path . $this->daemon_name;
return $this->path . $this->daemon_name . '.lock';
}

public function teardown()
Expand Down Expand Up @@ -54,7 +54,7 @@ public function set()
// The lock value will contain the procss PID
file_put_contents($this->filename(), $this->pid);

touch($this->filename());
touch($this->filename());
}

protected function get()
Expand Down

0 comments on commit 04debe1

Please sign in to comment.