Detach the process from the controlling terminal and run in the background. Returns: old and new get_process_id tuples.
()
| 54 | |
| 55 | |
| 56 | def 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 |
no test coverage detected