Revision 0dc0e521
Von Sven Schöling vor mehr als 10 Jahren hinzugefügt
scripts/task_server.pl | ||
---|---|---|
88 | 88 |
|
89 | 89 |
$::form->{login} = $lx_office_conf{task_server}->{login}; |
90 | 90 |
$::instance_conf->init; |
91 |
|
|
92 |
$::form->{__ERROR_HANDLER} = sub { die @_ }; |
|
91 | 93 |
} |
92 | 94 |
|
93 | 95 |
sub drop_privileges { |
... | ... | |
223 | 225 |
} |
224 | 226 |
} |
225 | 227 |
|
228 |
sub end_of_request { |
|
229 |
$main::lxdebug->show_backtrace(); |
|
230 |
die <<EOF; |
|
231 |
Job called ::end_of_request()! |
|
232 |
|
|
233 |
This usually indicates success but should not be used by background jobs. A |
|
234 |
backtrace has been logged. Please tell the job author to have a look at it. |
|
235 |
EOF |
|
236 |
|
|
237 |
} |
|
238 |
|
|
226 | 239 |
chdir $exe_dir; |
227 | 240 |
|
228 | 241 |
mkdir SL::System::TaskServer::PID_BASE() if !-d SL::System::TaskServer::PID_BASE(); |
Auch abrufbar als: Unified diff
TaskServer: $::form->error und ::end_of_request() handhaben