]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - backend/usb-darwin.c
Fix backend logging from signal handlers (OpenPrinting #167)
[thirdparty/cups.git] / backend / usb-darwin.c
index 3f03630f01b9793f0095ef6fae379cf4c487f37a..3a8feffb65b26d3160cdc11b2a59e9cfb2b69143 100644 (file)
@@ -1,5 +1,7 @@
 /*
- * Copyright 2005-2016 Apple Inc. All rights reserved.
+ * USB backend for macOS.
+ *
+ * Copyright © 2005-2021 Apple Inc. All rights reserved.
  *
  * IMPORTANT:  This Apple software is supplied to you by Apple Computer,
  * Inc. ("Apple") in consideration of your agreement to the following
@@ -2230,7 +2232,7 @@ sigterm_handler(int sig)          /* I - Signal */
       _exit(0);
     else
     {
-      write(2, "DEBUG: Child crashed.\n", 22);
+      backendMessage("DEBUG: Child crashed.\n");
       _exit(CUPS_BACKEND_STOP);
     }
   }