… | |
… | |
128 | handlers), then it must be prepared to be called recursively. |
128 | handlers), then it must be prepared to be called recursively. |
129 | |
129 | |
130 | =cut |
130 | =cut |
131 | |
131 | |
132 | $idle = sub { |
132 | $idle = sub { |
133 | print STDERR "FATAL: deadlock detected\n"; |
133 | require Carp; |
134 | exit (51); |
134 | Carp::croak ("FATAL: deadlock detected"); |
135 | }; |
135 | }; |
136 | |
136 | |
137 | # this coroutine is necessary because a coroutine |
137 | # this coroutine is necessary because a coroutine |
138 | # cannot destroy itself. |
138 | # cannot destroy itself. |
139 | my @destroy; |
139 | my @destroy; |