WLAN-Pi / wlanpi-profiler

Wi-Fi client capabilities analyzer tool built for the WLAN Pi
BSD 3-Clause "New" or "Revised" License
23 stars 8 forks source link

Signal handling in multiprocessing children is not working correctly #103

Open joshschmelzle opened 2 years ago

joshschmelzle commented 2 years ago

There is a scenario where a child process spawned by the main multiprocessing PID dies and profiler does not stop. Need to investigate ways to better handle signals and stop profiler if there is a problem in one of the other processes.

joshschmelzle commented 1 year ago

More useful reference code here for working with multiprocessing.

https://docs.python.org/3/library/multiprocessing.html

https://docs.python.org/3/howto/logging-cookbook.html#logging-to-a-single-file-from-multiple-processes

https://www.blog.pythonlibrary.org/2016/08/02/python-201-a-multiprocessing-tutorial/

joshschmelzle commented 1 year ago

Use https://github.com/plasma-umass/scalene to help with profiling profiler