bootstrap-vz/bootstrapvz/remote/build_servers/local.py
Anders Ingemann b067ada15e Introduce some awesome signal handling
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.
2015-04-16 22:21:45 +02:00

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)