diff options
| author | Giorgos Keramidas <keramida@FreeBSD.org> | 2006-03-04 15:20:28 +0000 |
|---|---|---|
| committer | Giorgos Keramidas <keramida@FreeBSD.org> | 2006-03-04 15:20:28 +0000 |
| commit | ef608a60087fcf462e85395fa22860a298cbecfc (patch) | |
| tree | 313a427532fe77c8e85e64f0cf8a04f6ef048c66 /lib/libutil | |
| parent | 5a8199e1421fe4288aac9d450384e38fcd0e87e1 (diff) | |
Notes
Diffstat (limited to 'lib/libutil')
| -rw-r--r-- | lib/libutil/pidfile.3 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libutil/pidfile.3 b/lib/libutil/pidfile.3 index 4895975e3f77..64f77b05e92d 100644 --- a/lib/libutil/pidfile.3 +++ b/lib/libutil/pidfile.3 @@ -120,8 +120,8 @@ pid_t otherpid, childpid; pfh = pidfile_open("/var/run/daemon.pid", 0600, &otherpid); if (pfh == NULL) { if (errno == EEXIST) { - errx(EXIT_FAILURE, "Daemon already running, pid: %d.", - (int)otherpid); + errx(EXIT_FAILURE, "Daemon already running, pid: %jd.", + (intmax_t)otherpid); } /* If we cannot create pidfile from other reasons, only warn. */ warn("Cannot open or create pidfile"); @@ -147,7 +147,7 @@ for (;;) { /* Do child work. */ break; default: - syslog(LOG_INFO, "Child %d started.", (int)childpid); + syslog(LOG_INFO, "Child %jd started.", (intmax_t)childpid); break; } } |
