Skip to content

Commit b997ddf

Browse files
kinownedbat
authored andcommitted
Include PID in the atexit log
1 parent 6644fec commit b997ddf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coverage/control.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ def stop(self):
545545
def _atexit(self):
546546
"""Clean up on process shutdown."""
547547
if self._debug.should("process"):
548-
self._debug.write("atexit: {!r}".format(self))
548+
self._debug.write("atexit: pid: {}, instance: {!r}".format(os.getpid(), self))
549549
if self._started:
550550
self.stop()
551551
if self._auto_save:

0 commit comments

Comments
 (0)