mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-06-06 14:46:27 +02:00
Fix codestyle.
This commit is contained in:
parent
86b656a25c
commit
714128f614
32 changed files with 7 additions and 67 deletions
|
@ -66,7 +66,6 @@ abstract class AbstractDaemon
|
|||
/**
|
||||
* Used to handle properly SIGINT, SIGTERM, SIGCHLD and SIGHUP.
|
||||
*
|
||||
* @param int $signal
|
||||
* @param mixed $signinfo
|
||||
*/
|
||||
protected function handle_signal(int $signal, $signinfo)
|
||||
|
|
|
@ -68,6 +68,7 @@ class Phone extends AbstractDaemon
|
|||
if ((microtime(true) - $this->last_message_at) > $this->max_inactivity)
|
||||
{
|
||||
posix_kill(getmypid(), SIGTERM); //Send exit signal to the current process
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue