)]}'
{
  "commit": "a7107913d9ed38b23d140fe29eef1ff374663902",
  "tree": "603c7aa29ff5ce6a91989a8a7875d873bb19bf65",
  "parents": [
    "3b2cf40ee8595d3cc88b66a86dede83e56228a8d"
  ],
  "author": {
    "name": "Zhuoyao Zhang",
    "email": "zhuoyao@google.com",
    "time": "Wed Dec 04 17:39:54 2024 +0000"
  },
  "committer": {
    "name": "Zhuoyao Zhang",
    "email": "zhuoyao@google.com",
    "time": "Wed Dec 04 21:09:44 2024 +0000"
  },
  "message": "Fix a race condition in edit monitor\n\nWhen there are multiple edit monitor starting around the same time,\nthere will be cases that the pidfile is deleted or overridden as\nmultiple processes are trying to remove and create the pidfile around\nthe same time (see details in b/382135550).\nThis cl fix it by checking the pid in the pidfile and\nonly remove the pidfile if the pid stored there is the expected one.\n\nBug: 382135550\nTest: atest edit_monitor_integration_test\nChange-Id: Ifdb4c29c8b36052fea83ce59de1be9d99db3a852\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "0c31ab85c9188f79518b1b7fb6b70a692e3c5193",
      "old_mode": 33188,
      "old_path": "tools/edit_monitor/daemon_manager.py",
      "new_id": "a352e30291d23fbd5c822a0e7eb22283208fba67",
      "new_mode": 33188,
      "new_path": "tools/edit_monitor/daemon_manager.py"
    },
    {
      "type": "modify",
      "old_id": "3d28274da4a70b8e3d2b240d5c98a0841f6a40ba",
      "old_mode": 33188,
      "old_path": "tools/edit_monitor/edit_monitor_integration_test.py",
      "new_id": "f39b93667d63470490111c5f35947f489cc9dfd1",
      "new_mode": 33188,
      "new_path": "tools/edit_monitor/edit_monitor_integration_test.py"
    },
    {
      "type": "modify",
      "old_id": "49385f1cc5dd4ad647f1d11952ed416e21db52b9",
      "old_mode": 33188,
      "old_path": "tools/edit_monitor/main.py",
      "new_id": "7ca0daa7c539364b86719dadcac1db8d106857a2",
      "new_mode": 33188,
      "new_path": "tools/edit_monitor/main.py"
    }
  ]
}
