mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 07:26:29 +00:00

We can now press Ctrl+C remotely while any subprocess of the bootstrapping process is running, previously SIGINTs weren't propagated to the bootstrapping process because there was a thread in between it all. Now the bootstrapping process is in it's own process group.
16 lines
315 B
Python
16 lines
315 B
Python
from build_server import BuildServer
|
|
from contextlib import contextmanager
|
|
|
|
|
|
class LocalBuildServer(BuildServer):
|
|
|
|
@contextmanager
|
|
def connect(self):
|
|
yield LocalConnection()
|
|
|
|
|
|
class LocalConnection(object):
|
|
|
|
def run(self, *args, **kwargs):
|
|
from bootstrapvz.base.main import run
|
|
return run(*args, **kwargs)
|