Skip to content
Snippets Groups Projects
Commit bdd1f208 authored by Georges Racinet's avatar Georges Racinet
Browse files

server: mono-process mode

The forking that the `hgitaly-serve` command is doing by
default is harmful when we want to debug with pdb: request
handling always end in an error. The new `--mono-process`
option solves that by serving directly from the main process.
This is probably a matter of forwarding all the
right file descriptors for the tty, but it's not worth
the investigation time when there is such a simple solution.

Could have done it in the command itself, but this is probably
easier to maintain in the `server` module and certainly easier
to test.

No strong assertions that it doesn't fork in the test, but
coverage proves that the early return got executed; that should
be enough.
parent 58e290c6
No related branches found
No related tags found
Loading
Checking pipeline status
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment