MCPcopy Index your code
hub / github.com/borgbackup/borg / daemonize

Function daemonize

src/borg/helpers/process.py:56–62  ·  view source on GitHub ↗

Detach the process from the controlling terminal and run in the background. Returns: old and new get_process_id tuples.

()

Source from the content-addressed store, hash-verified

54
55
56def daemonize():
57 """Detach the process from the controlling terminal and run in the background.
58
59 Returns: old and new get_process_id tuples.
60 """
61 with _daemonize() as (old_id, new_id):
62 return old_id, new_id
63
64
65@contextlib.contextmanager

Callers 2

mountMethod · 0.85
mountMethod · 0.85

Calls 1

_daemonizeFunction · 0.85

Tested by

no test coverage detected