service entrypoint
| 390 | |
| 391 | // service entrypoint |
| 392 | int TRACE_main(UtilSvc* arg) |
| 393 | { |
| 394 | Service* svc = (Service*) arg; |
| 395 | int exit_code = FB_SUCCESS; |
| 396 | |
| 397 | TraceSvcJrd traceSvc(*svc); |
| 398 | try |
| 399 | { |
| 400 | fbtrace(svc, &traceSvc); |
| 401 | } |
| 402 | catch (const Exception& e) |
| 403 | { |
| 404 | StaticStatusVector status; |
| 405 | e.stuffException(status); |
| 406 | |
| 407 | UtilSvc::StatusAccessor sa = svc->getStatusAccessor(); |
| 408 | sa.init(); |
| 409 | sa.setServiceStatus(status.begin()); |
| 410 | exit_code = FB_FAILURE; |
| 411 | } |
| 412 | |
| 413 | return exit_code; |
| 414 | } |
nothing calls this directly
no test coverage detected