#22565: Refactor tor's signal handler to avoid undefined behaviour -------------------------------------------+------------------------------- Reporter: teor | Owner: Type: defect | Status: new Priority: Medium | Milestone: Tor: | unspecified Component: Core Tor/Tor | Version: Severity: Normal | Resolution: Keywords: memory-safety, technical-debt | Actual Points: Parent ID: | Points: 2 Reviewer: | Sponsor: -------------------------------------------+-------------------------------
Comment (by teor): We should declare these flags as `volatile sig_atomic_t`, set/increment them in the signal handler, and clear them in the main loop. -- Ticket URL: <https://trac.torproject.org/projects/tor/ticket/22565#comment:1> Tor Bug Tracker & Wiki <https://trac.torproject.org/> The Tor Project: anonymity online _______________________________________________ tor-bugs mailing list tor-bugs@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs