summaryrefslogtreecommitdiff
path: root/cups/debug.c
diff options
context:
space:
mode:
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2008-06-18 16:44:53 +0000
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2008-06-18 16:44:53 +0000
commitdd1abb6b5f145c5e5f279d8848b5f3ec161fd227 (patch)
tree48d46ed8d33890c2b5d047996f5a61aab8990520 /cups/debug.c
parentc934a06cde0e8f2657b7e614df31fd300658d53e (diff)
downloadcups-dd1abb6b5f145c5e5f279d8848b5f3ec161fd227.tar.gz
Merge changes from CUPS 1.4svn-r7670.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@810 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'cups/debug.c')
-rw-r--r--cups/debug.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/cups/debug.c b/cups/debug.c
index fcaa11e2a..965947976 100644
--- a/cups/debug.c
+++ b/cups/debug.c
@@ -393,7 +393,10 @@ _cups_debug_printf(const char *format, /* I - Printf-style format string */
else if (!strcmp(cups_debug_log, "-"))
cg->debug_fd = 2;
else
- cg->debug_fd = open(cups_debug_log, O_WRONLY | O_APPEND | O_CREAT, 0644);
+ {
+ snprintf(buffer, sizeof(buffer), cups_debug_log, getpid());
+ cg->debug_fd = open(buffer, O_WRONLY | O_APPEND | O_CREAT, 0644);
+ }
}
if (cg->debug_fd < 0)