Don't ever use select() with long timeouts unless it also catches other events like "kill process". An app waiting 60 seconds to close after the user asks it to shudown is unacceptible.
Cyan~Fire - Sun Sep 25, 2005 8:42 pm
Post subject:
Well the deadlock module is the one waiting 60s, and that's only once. If I'm understanding the code properly (it's using the pthread library about which I know nothing), it should cancel immediately on unloading the module, but it seems that's not happening. I can live with a 10s delay from select(), though.
Dr Brain - Sun Sep 25, 2005 8:49 pm
Post subject:
I've never had any issue with ASSS not shutting down immediatly on windows. The problem is either something introduced in a version more recent that what I last used, or a pecularity in your compiling enviroment.
Cyan~Fire - Mon Sep 26, 2005 4:34 pm
Post subject:
It happens on the pre-compiled build too, so it's either the version or the system. Did you use the deadlock module?
Dr Brain - Mon Sep 26, 2005 5:13 pm
Post subject:
I don't think deadlock compiled for me, so probably not.
But I never had the problem with net, either.
Cyan~Fire - Tue Sep 27, 2005 7:07 pm
Post subject:
Possibly you were using ?shutdown instead of Ctrl+C, and therefore the command receipt ended the recv thread immediately?
Edit: Cancel that. Just tested, and still the delay. Maybe I'll post it as a bug.
Grelminar - Wed Sep 28, 2005 3:08 am
Post subject:
I reduced the select timeout in net to 1 second.
About deadlock delaying the shutdown, that really shouldn't be happening because of the "pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL)". Reports on this thread seemed to indicate that it worked...