Author |
Message |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
|
Back to top |
|
 |
Mr Ekted Movie Geek

Gender: Joined: Feb 09 2004 Posts: 1379 Offline
|
Posted: Sat Sep 24, 2005 10:31 pm Post subject: |
 |
|
|
|
kill -9 _________________ 4,691 irradiated haggis! |
|
Back to top |
|
 |
Bak ?ls -s 0 in

Age:26 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Sun Sep 25, 2005 10:40 am Post subject: |
 |
|
|
|
No, it's not only deadlock because it waits much longer than 10s. This is new in 1.4.0. |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Sun Sep 25, 2005 11:38 am Post subject: |
 |
|
|
|
Ahhh, I've got it. I was shutting down before a minute was up, so deadlock was finishing that minute before me. Net also waits 10s on select, but that's not too big of a deal. |
|
Back to top |
|
 |
Mr Ekted Movie Geek

Gender: Joined: Feb 09 2004 Posts: 1379 Offline
|
Posted: Sun Sep 25, 2005 5:10 pm Post subject: |
 |
|
|
|
Cyan~Fire wrote: | Net also waits 10s on select, but that's not too big of a deal. |
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. |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: 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. |
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: 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. _________________ Hyperspace Owner
Smong> so long as 99% deaths feel lame it will always be hyperspace to me |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: 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? |
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: 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. |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: 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. |
|
Back to top |
|
 |
Grelminar Creator of Asss
Joined: Feb 26 2003 Posts: 378 Offline
|
Posted: 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... |
|
Back to top |
|
 |
|