MCPcopy Index your code
hub / github.com/python/cpython / write_signed

Function write_signed

Lib/multiprocessing/forkserver.py:477–483  ·  view source on GitHub ↗
(fd, n)

Source from the content-addressed store, hash-verified

475 return SIGNED_STRUCT.unpack(data)[0]
476
477def write_signed(fd, n):
478 msg = SIGNED_STRUCT.pack(n)
479 while msg:
480 nbytes = os.write(fd, msg)
481 if nbytes == 0:
482 raise RuntimeError('should not get here')
483 msg = msg[nbytes:]
484
485#
486#

Callers 1

mainFunction · 0.85

Calls 2

packMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…