]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
More getpid format fixes
authorJim Jagielski <jim@apache.org>
Wed, 31 Aug 2005 15:18:54 +0000 (15:18 +0000)
committerJim Jagielski <jim@apache.org>
Wed, 31 Aug 2005 15:18:54 +0000 (15:18 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@265504 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/worker/worker.c

index 3b10a0aaf40b1081a311151568d3299f653b0f74..3dfdcc270a45c8763e601211c5b0fe61daf84b59 100644 (file)
@@ -1737,8 +1737,8 @@ int ap_mpm_run(apr_pool_t *_pconf, apr_pool_t *plog, server_rec *s)
             if ( pidfile != NULL && unlink(pidfile) == 0)
                 ap_log_error(APLOG_MARK, APLOG_INFO, 0,
                              ap_server_conf,
-                             "removed PID file %s (pid=%ld)",
-                             pidfile, (long)getpid());
+                             "removed PID file %s (pid=%" APR_PID_T_FMT ")",
+                             pidfile, getpid());
     
             ap_log_error(APLOG_MARK, APLOG_NOTICE, 0,
                          ap_server_conf, "caught SIGTERM, shutting down");
@@ -1764,8 +1764,8 @@ int ap_mpm_run(apr_pool_t *_pconf, apr_pool_t *plog, server_rec *s)
             if ( pidfile != NULL && unlink(pidfile) == 0)
                 ap_log_error(APLOG_MARK, APLOG_INFO, 0,
                              ap_server_conf,
-                             "removed PID file %s (pid=%ld)",
-                             pidfile, (long)getpid());
+                             "removed PID file %s (pid=%" APR_PID_T_FMT ")",
+                             pidfile, getpid());
     
             ap_log_error(APLOG_MARK, APLOG_NOTICE, 0,
                          ap_server_conf, "caught SIGTERM, shutting down");