signal handling: fReopenDebugLog and fRequestShutdown should be type sig_atomic_t #8004

pull catilac wants to merge 1 commits into bitcoin:master from catilac:fix_signal_handler changing 3 files +7 −3
  1. catilac commented at 4:47 AM on May 5, 2016: contributor

    This allows access as an atomic variable in the presence of async interrupts.

    See issue #7433 for more details fixes: #7433

  2. laanwj added the label Bug on May 5, 2016
  3. laanwj commented at 5:54 AM on May 5, 2016: member

    I think you're missing signal.h include at the places you use the type.

  4. catilac commented at 10:55 PM on May 8, 2016: contributor

    @laanwj ahh you were right 👍

  5. MarcoFalke commented at 7:09 AM on May 9, 2016: member

    @catilac Mind to squash the commits?

  6. laanwj commented at 8:52 AM on May 9, 2016: member

    ACK after squash into one "atomic" commit E.g.

    $ git checkout fix_signal_handler
    $ git rebase -i 88b77c7
    # set bottom two commits from 'pick' to 'squash', save and quit editor
    $ git push -f
    
  7. MarcoFalke cross-referenced this on May 9, 2016 from issue Add 'how to squash several fixup commits' to our coding guideline by MarcoFalke
  8. fReopenDebugLog and fRequestShutdown should be type sig_atomic_t
    This allows access as an atomic variable in the presence
    of async interrupts.
    
    See issue #7433 for more details
    fixes: #7433
    326231611b
  9. catilac commented at 3:22 PM on May 9, 2016: contributor

    Ah right! Done and done.

  10. sipa commented at 7:29 PM on May 9, 2016: member

    utACK 326231611bda6808b579ab7286e471c36f62e98c

  11. fanquake commented at 5:39 AM on May 10, 2016: member

    utACK 3262316

  12. dcousens commented at 3:15 AM on May 11, 2016: contributor

    utACK 3262316

  13. laanwj merged this on May 12, 2016
  14. laanwj closed this on May 12, 2016

  15. laanwj referenced this in commit 2efe38b832 on May 12, 2016
  16. elfring commented at 1:00 PM on May 12, 2016: none
  17. sipa cross-referenced this on May 28, 2016 from issue Include signal.h for sig_atomic_t in WIN32 by sipa
  18. bitcartel cross-referenced this on Oct 25, 2016 from issue Upstream 8123 race condition by bitcartel
  19. zkbot referenced this in commit 11ce636a9d on Oct 25, 2016
  20. codablock referenced this in commit 7a4f1329f9 on Sep 16, 2017
  21. codablock referenced this in commit 89077fc012 on Sep 19, 2017
  22. codablock referenced this in commit 26f07f835c on Dec 21, 2017
  23. bitcoin locked this on Sep 8, 2021

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:55 UTC