Skip to content
Snippets Groups Projects
user avatar
Georges Racinet authored
The rationale is that if a working directory is being held by a process (existing
or not) that is not considered part of the HGitaly system service, it means that
the process was killed before it could release the working directory and the pid
is either not in use or has been reused for an unrelated process. The underlying
assumption is that only HGitaly is supposed to make such working directories.

This could be further expanded to the roster lock.

Had to put `is_current_service_process` in a separate top level module
instead of, e.g., `server.mono` to avoid import loop:
  server.mono imports services import workdir import server.mono

We need to use pytest-cov's `cleanup_on_signal` again. This time,
it's easier as the subprocess startup function is defined by the test itself.
fb44e1f5
History
Name Last commit Last update