MCPcopy Create free account
hub / github.com/FastLED/FastLED / register

Method register

ci/util/pio_process_killer.py:42–55  ·  view source on GitHub ↗

Register a PIO subprocess for tracking. Args: proc: subprocess.Popen instance to track

(self, proc: subprocess.Popen[Any])

Source from the content-addressed store, hash-verified

40 self._signal_handlers_installed = False
41
42 def register(self, proc: subprocess.Popen[Any]) -> None:
43 """Register a PIO subprocess for tracking.
44
45 Args:
46 proc: subprocess.Popen instance to track
47 """
48 pid = proc.pid
49 if pid is None:
50 return
51
52 with self._lock:
53 self._processes[pid] = proc
54 self._ensure_cleanup_handlers()
55 logger.debug(f"Registered PIO process: pid={pid}")
56
57 def unregister(self, proc: subprocess.Popen[Any]) -> None:
58 """Unregister a PIO subprocess (called when process completes normally).

Callers 5

_register_cleanupMethod · 0.45
create_pio_processFunction · 0.45
register_pio_processFunction · 0.45

Calls 2

debugMethod · 0.80

Tested by

no test coverage detected