Skip to content

Commit ee63fea

Browse files
committed
Update _is_daemon.py
_pid is attribute
1 parent 8070417 commit ee63fea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

yaqd-core/yaqd_core/_is_daemon.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@ def main(cls):
211211
@classmethod
212212
async def _main(cls, config_filepath, config_file, args=None):
213213
"""Parse command line arguments, start event loop tasks."""
214-
logger.info(f"PID: {getpid()}")
214+
cls._pid = getpid()
215+
logger.info(f"PID: {cls._pid}")
215216
loop = asyncio.get_running_loop()
216217
cls.__servers = []
217218
for section in config_file:

0 commit comments

Comments
 (0)