(path: str)
| 283 | |
| 284 | |
| 285 | def socket_connectable(path: str) -> bool: |
| 286 | if not os.path.exists(path): |
| 287 | return False |
| 288 | try: |
| 289 | s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) |
| 290 | s.connect(path) |
| 291 | s.close() |
| 292 | return True |
| 293 | except OSError: |
| 294 | return False |
| 295 | |
| 296 | |
| 297 | def find_child_server(env: dict[str, str], exclude: set[int]) -> int | None: |
no test coverage detected