(pid: int, tid: int)
| 133 | |
| 134 | |
| 135 | def get_thread_name(pid: int, tid: int) -> Optional[str]: |
| 136 | try: |
| 137 | with open(f"/proc/{pid}/task/{tid}/comm") as comm: |
| 138 | return comm.read().strip() |
| 139 | except OSError: |
| 140 | return None |
| 141 | |
| 142 | |
| 143 | def is_gzip(filename: pathlib.Path) -> bool: |
no outgoing calls