diff options
author | Michael R Sweet <michael.r.sweet@gmail.com> | 2021-04-09 10:09:12 -0400 |
---|---|---|
committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2021-04-09 10:09:12 -0400 |
commit | 1ab278c3d04207b846c75b0c2fd58aba5b7d458c (patch) | |
tree | e1aaa45348ceb23aabc125641761edcc16a0c569 /backend/ipp.c | |
parent | a3fb828390bef5b915abcafdb4e66ce428ffec40 (diff) | |
download | cups-1ab278c3d04207b846c75b0c2fd58aba5b7d458c.tar.gz |
Fix backend logging from signal handlers (OpenPrinting #167)
Diffstat (limited to 'backend/ipp.c')
-rw-r--r-- | backend/ipp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/ipp.c b/backend/ipp.c index 8b1976990..63353a66d 100644 --- a/backend/ipp.c +++ b/backend/ipp.c @@ -3418,7 +3418,7 @@ sigterm_handler(int sig) /* I - Signal */ { (void)sig; /* remove compiler warnings... */ - write(2, "DEBUG: Got SIGTERM.\n", 20); + backendMessage("DEBUG: Got SIGTERM.\n"); #if defined(HAVE_GSSAPI) && defined(HAVE_XPC) if (child_pid) @@ -3434,7 +3434,7 @@ sigterm_handler(int sig) /* I - Signal */ * Flag that the job should be canceled... */ - write(2, "DEBUG: sigterm_handler: job_canceled = 1.\n", 25); + backendMessage("DEBUG: sigterm_handler: job_canceled = 1.\n"); job_canceled = 1; return; |