]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - scheduler/cups-deviced.c
Import CUPS 1.4svn-r7226.
[thirdparty/cups.git] / scheduler / cups-deviced.c
index 3cacab3ab93da8a579b48485f05d1600eea95e16..385037ea244d35287dbbe5a08e1a8e9c13b2634d 100644 (file)
@@ -3,7 +3,7 @@
  *
  *   Device scanning mini-daemon for the Common UNIX Printing System (CUPS).
  *
- *   Copyright 2007 by Apple Inc.
+ *   Copyright 2007-2008 by Apple Inc.
  *   Copyright 1997-2006 by Easy Software Products.
  *
  *   These coded instructions, statements, and computer programs are the
@@ -291,6 +291,8 @@ main(int  argc,                             /* I - Number of command-line args */
          if (!dev)
          {
             cupsDirClose(dir);
+           fclose(fp);
+            kill(pid, SIGTERM);
            return (1);
          }