变更
This commit is contained in:
+3
-2
@@ -63,7 +63,9 @@ class ServerCommand extends Command
|
|||||||
default =>
|
default =>
|
||||||
throw new Exception('I don\'t know what I want to do.')
|
throw new Exception('I don\'t know what I want to do.')
|
||||||
};
|
};
|
||||||
file_put_contents(storage('.swoole.pid'), 0);
|
if ($input->getOption('daemon') != 1) {
|
||||||
|
file_put_contents(storage('.swoole.pid'), 0);
|
||||||
|
}
|
||||||
return $value;
|
return $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -85,7 +87,6 @@ class ServerCommand extends Command
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @return int
|
* @return int
|
||||||
* @throws ConfigException
|
|
||||||
* @throws ContainerExceptionInterface
|
* @throws ContainerExceptionInterface
|
||||||
* @throws NotFoundExceptionInterface
|
* @throws NotFoundExceptionInterface
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user