Roxen.git/
server/
base_server/
roxen.pike
Branch:
Tag:
Non-build tags
All tags
No tags
1998-03-06
1998-03-06 13:09:22 by Henrik Grubbström (Grubba) <grubba@grubba.org>
45cae31fcbd5780c12b208f7d5ca27a682982d9f (
32
lines) (+
20
/-
12
)
[
Show
|
Annotate
]
Branch:
5.2
Paranoia fix.
Rev: server/base_server/roxen.pike:1.172
1:
-
constant cvs_version = "$Id: roxen.pike,v 1.
171
1998/03/
05
16
:
17
:
51
grubba Exp $";
+
constant cvs_version = "$Id: roxen.pike,v 1.
172
1998/03/
06
13
:
09
:
22
grubba Exp $";
#define IN_ROXEN #include <roxen.h> #include <config.h>
210:
while(1) { if(q=catch {
-
do
-
{
-
if((h=handle_queue->read()) && h && h[0])
-
{
+
do {
+
if((h=handle_queue->read()) && h && h[0]) {
h[0](@h[1]); h=0; } } while(1);
-
})
-
perror
("Uncaught error in handler thread: "
+describe
_backtrace(q)+
+
})
{
+
report_error
("Uncaught error in handler thread: "
+
+
describe
_backtrace(q)
+
"Client will not get any response from Roxen.\n");
-
+
if (q = catch {h = 0;}) {
+
report_error("Uncaught error in handler thread: " +
+
describe_backtrace(q) +
+
"Client will not get any response from Roxen.\n");
+
}
-
+
}
-
+
}
+
}
void threaded_handle(function f, mixed ... args) {