I am relatively new to Python and would like to understand the behavior of sys.exit() in the following case.
Main thread calls a sys.exit() but there's another non-daemon thread which was already waiting on some lock indefinitely.
I have tested this in my program and looks like the program as a whole doesn't exit. Is this expected? I am not sure if the non-daemon thread is handling SystemExit exception since that's in a third-party library.
Thanks in advance for the help.