| 1377 | */ |
| 1378 | |
| 1379 | static void status_timer_cb(CFRunLoopTimerRef timer, |
| 1380 | void *info) |
| 1381 | { |
| 1382 | (void)timer; |
| 1383 | (void)info; |
| 1384 | |
| 1385 | fputs("STATE: +offline-report\n", stderr); |
| 1386 | _cupsLangPrintFilter(stderr, "INFO", _("The printer is offline.")); |
| 1387 | |
| 1388 | if (getenv("CLASS") != NULL) |
| 1389 | { |
| 1390 | /* |
| 1391 | * If the CLASS environment variable is set, the job was submitted |
| 1392 | * to a class and not to a specific queue. In this case, we want |
| 1393 | * to abort immediately so that the job can be requeued on the next |
| 1394 | * available printer in the class. |
| 1395 | * |
| 1396 | * Sleep 5 seconds to keep the job from requeuing too rapidly... |
| 1397 | */ |
| 1398 | |
| 1399 | sleep(5); |
| 1400 | |
| 1401 | exit(CUPS_BACKEND_FAILED); |
| 1402 | } |
| 1403 | } |
| 1404 | |
| 1405 | |
| 1406 | #pragma mark - |
nothing calls this directly
no test coverage detected