Remove PID file at the very end #18526

pull hebasto wants to merge 1 commits into bitcoin:master from hebasto:20200404-del-pid changing 1 files +9 −7
  1. hebasto commented at 7:58 PM on April 4, 2020: member

    While reproducing the bug from #18517, I've noticed that the bitcoind.pid file has already been removed when the bitcoind hangs.

    This PR makes Shutdown() keep the bitcoind.pid file available until the end.

  2. DrahtBot commented at 1:23 AM on April 5, 2020: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--174a7506f384e20aa4161008e828411d-->

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #18189 (Add error handling to all boost filesystem functions by uhliksk)

    If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

  3. DrahtBot cross-referenced this on Apr 5, 2020 from issue Add error handling to all boost filesystem functions by uhliksk
  4. in src/init.cpp:288 in b2486a3493 outdated
     285 | @@ -293,6 +286,14 @@ void Shutdown(NodeContext& node)
     286 |      if (node.mempool) node.mempool = nullptr;
     287 |      node.scheduler.reset();
     288 |      LogPrintf("%s: done\n", __func__);
    


    emilengler commented at 12:20 PM on April 6, 2020:

    I would put line 288 at the very end. Done should always be the last message in a log. Otherwise it would be weird if stuff still follows


    hebasto commented at 2:19 PM on April 6, 2020:

    Done.

  5. emilengler changes_requested
  6. emilengler commented at 12:21 PM on April 6, 2020: contributor

    Concept ACK with exception to move the done LogPrintf

  7. Remove PID file at the very end 7fcdec0f32
  8. hebasto force-pushed on Apr 6, 2020
  9. hebasto commented at 2:18 PM on April 6, 2020: member

    Updated b2486a3493516745a452b5b87e44289dfb55fed3 -> 7fcdec0f326f7fb547ec9c651871842cf518ea38 (pr18526.01 -> pr18526.02, diff):

    I would put line 288 at the very end. Done should always be the last message in a log. Otherwise it would be weird if stuff still follows

  10. emilengler approved
  11. emilengler commented at 2:20 PM on April 6, 2020: contributor

    utACK 7fcdec0f326f7fb547ec9c651871842cf518ea38

  12. MarcoFalke commented at 3:05 PM on April 6, 2020: member

    ACK 7fcdec0f326f7fb547ec9c651871842cf518ea38

  13. promag commented at 10:46 PM on April 9, 2020: member

    Code review ACK 7fcdec0f326f7fb547ec9c651871842cf518ea38.

  14. theStack approved
  15. theStack commented at 2:20 PM on April 10, 2020: contributor

    Code review ACK 7fcdec0f326f7fb547ec9c651871842cf518ea38

  16. MarcoFalke merged this on Apr 10, 2020
  17. MarcoFalke closed this on Apr 10, 2020

  18. hebasto deleted the branch on Apr 10, 2020
  19. sidhujag referenced this in commit 91b634cd18 on Apr 13, 2020
  20. Fabcien referenced this in commit 3393b70184 on Jan 14, 2021
  21. bitcoin locked this on Feb 15, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-20 06:54 UTC