File: un-monkey-patch-privileged-daemon-160e00296549df3d.yaml

package info (click to toggle)
python-oslo.privsep 3.6.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 460 kB
  • sloc: python: 1,446; makefile: 28; sh: 12
file content (11 lines) | stat: -rw-r--r-- 602 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
---
other:
  - |
    The ``oslo.privsep`` client can be called from a program using eventlet.
    If ``eventlet.monkey_patch``, some libraries will be patched, for example
    ``threading`` or ``os``. When the root daemon is forked from the client
    process, those libraries remain patched. Now, when the daemon is forked
    from the client process, those libraries and methods are restored to the
    original values. The goal is to prevent some timeouts when using eventlet
    threads (user threads); system threads are preemptive and the code does
    not need to care about the executor token.