)]}'
{
  "commit": "49785b06ded19c7c4afce186bac90fea707470ea",
  "tree": "e3a0dccafdd64288e4ecf03cef8a84d9a7b854a7",
  "parents": [
    "9f7176d360b5898003d5ca78bab1822ad67867c4"
  ],
  "author": {
    "name": "Serhiy Storchaka",
    "email": "storchaka@gmail.com",
    "time": "Mon Jan 22 16:14:42 2024 +0200"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Mon Jan 22 16:14:42 2024 +0200"
  },
  "message": "gh-102512: Turn _DummyThread into _MainThread after os.fork() called from a foreign thread (GH-113261)\n\nAlways set a _MainThread as a main thread after os.fork() is called from\r\na thread started not by the threading module.\r\n\r\nA new _MainThread was already set as a new main thread after fork if\r\nthreading.current_thread() was not called for a foreign thread before fork.\r\nNow, if it was called before fork, the implicitly created _DummyThread will\r\nbe turned into _MainThread after fork.\r\n\r\nIt fixes, in particularly, an incompatibility of _DummyThread with\r\nthe threading shutdown logic which relies on the main thread\r\nhaving tstate_lock.\r\n\r\nCo-authored-by: Marek Marczykowski-Górecki \u003cmarmarek@invisiblethingslab.com\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "3060af44fd7e3d220aa2db6feea13f840d9fbff8",
      "old_mode": 33188,
      "old_path": "Lib/test/test_threading.py",
      "new_id": "7160c53d691ba2025c9f380ef53bd91020825d52",
      "new_mode": 33188,
      "new_path": "Lib/test/test_threading.py"
    },
    {
      "type": "modify",
      "old_id": "85aff58968082d875ea8130241f8b1561dbcf9dd",
      "old_mode": 33188,
      "old_path": "Lib/threading.py",
      "new_id": "c561800a128059eb94655e10217be85b2eb140f1",
      "new_mode": 33188,
      "new_path": "Lib/threading.py"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "659cba73cbf34e973f39c2aa61959f5f35b71d09",
      "new_mode": 33188,
      "new_path": "Misc/NEWS.d/next/Library/2023-03-08-00-02-30.gh-issue-102512.LiugDr.rst"
    }
  ]
}
