diff options
author | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-14 16:49:22 +0000 |
---|---|---|
committer | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-14 16:49:22 +0000 |
commit | d568221710959cf7d783e6ff0fb80fb43a231124 (patch) | |
tree | 8d6f039393294c6ffac8533639afdebe5d68bfc1 /Xprint/pcl/PclMisc.c | |
parent | 9508a382f8a9f241dab097d921b6d290c1c3a776 (diff) |
XFree86 4.3.0.1xf86-4_3_0_1PRE_xf86-4_3_0_1
Diffstat (limited to 'Xprint/pcl/PclMisc.c')
-rw-r--r-- | Xprint/pcl/PclMisc.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Xprint/pcl/PclMisc.c b/Xprint/pcl/PclMisc.c index 867393a46..f5d36a263 100644 --- a/Xprint/pcl/PclMisc.c +++ b/Xprint/pcl/PclMisc.c @@ -44,9 +44,13 @@ not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from said copyright holders. */ +/* $XFree86: xc/programs/Xserver/Xprint/pcl/PclMisc.c,v 1.10 2001/12/02 13:35:28 herrb Exp $ */ +#include <stdlib.h> +#include <signal.h> +#include <sys/types.h> +#include <sys/wait.h> #include "Xos.h" /* for SIGCLD on pre-POSIX systems */ -#include <stdio.h> #include "Pcl.h" #include "cursor.h" @@ -54,6 +58,7 @@ copyright holders. #include "windowstr.h" #include "propertyst.h" +#include "attributes.h" /*ARGSUSED*/ @@ -142,12 +147,14 @@ GetPropString( } #include <signal.h> +#include <errno.h> /* ARGSUSED */ static void SigchldHndlr ( int dummy) { int status, w; + int olderrno = errno; struct sigaction act; sigfillset(&act.sa_mask); act.sa_flags = 0; @@ -159,6 +166,7 @@ static void SigchldHndlr ( * Is this really necessary? */ sigaction(SIGCHLD, &act, (struct sigaction *)NULL); + errno = olderrno; } /* @@ -248,6 +256,7 @@ char *ptr; * in the clipped area. * For XP-PCL-LJ3, it draws the spooled figures in the clipped area. */ +void PclSendData( FILE *outFile, PclContextPrivPtr pConPriv, |