[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-bugs] #16630 [Tor]: Remove casting when registering signals



#16630: Remove casting when registering signals
-------------------------+----------------------------------
 Reporter:  cypherpunks  |          Owner:
     Type:  enhancement  |         Status:  new
 Priority:  minor        |      Milestone:
Component:  Tor          |        Version:  Tor: unspecified
 Keywords:               |  Actual Points:
Parent ID:               |         Points:
-------------------------+----------------------------------
 The current code for registering signals, `handle_signals`, uses casting
 to convert the signal type into a pointer. The result is a pointer where
 its address is the signal type instead of an actual memory location.

 This hack requires the callback functions `signal_callback` and
 `process_signal` to do the same hack in reverse to get the signal type
 back.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/16630>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs