summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan A. Maciej <stephanm@datenfriedhof.net>2008-03-17 18:00:49 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2008-03-17 18:00:49 -0700
commit6188cb8538b713296266238b7b780718fcec881b (patch)
tree789f68a6bf4ec379f769a3eb793b420b98c27e8d
parent24d4172a71850299c797f887d3027c32068763d0 (diff)
Allow font server to start with pid longer than 5 digits
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
-rw-r--r--os/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/utils.c b/os/utils.c
index fcc1c2a..5ee8b6e 100644
--- a/os/utils.c
+++ b/os/utils.c
@@ -562,7 +562,7 @@ StorePid (void)
strerror (errno));
return -1;
}
- if (fprintf (pidFilePtr, "%5ld\n", (long) getpid ()) != 6)
+ if (fprintf (pidFilePtr, "%11ld\n", (long) getpid ()) != 12)
{
ErrorF ("cannot write to process-id file %s: %s\n", pidFile,
strerror (errno));