You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rj...@apache.org on 2009/09/11 19:53:14 UTC

svn commit: r813957 - in /httpd/mod_fcgid/trunk/modules/fcgid: fcgid_pm_unix.c fcgid_proc_unix.c

Author: rjung
Date: Fri Sep 11 17:53:14 2009
New Revision: 813957

URL: http://svn.apache.org/viewvc?rev=813957&view=rev
Log:
Use printf format macros for pids.

Modified:
    httpd/mod_fcgid/trunk/modules/fcgid/fcgid_pm_unix.c
    httpd/mod_fcgid/trunk/modules/fcgid/fcgid_proc_unix.c

Modified: httpd/mod_fcgid/trunk/modules/fcgid/fcgid_pm_unix.c
URL: http://svn.apache.org/viewvc/httpd/mod_fcgid/trunk/modules/fcgid/fcgid_pm_unix.c?rev=813957&r1=813956&r2=813957&view=diff
==============================================================================
--- httpd/mod_fcgid/trunk/modules/fcgid/fcgid_pm_unix.c (original)
+++ httpd/mod_fcgid/trunk/modules/fcgid/fcgid_pm_unix.c Fri Sep 11 17:53:14 2009
@@ -236,7 +236,7 @@
         /* I am the child */
         g_pm_pid = getpid();
         ap_log_error(APLOG_MARK, APLOG_INFO, 0, main_server,
-                     "mod_fcgid: Process manager %d started", getpid());
+                     "mod_fcgid: Process manager %" APR_PID_T_FMT  " started", getpid());
 
         if ((rv = init_signal(main_server)) != APR_SUCCESS) {
             ap_log_error(APLOG_MARK, LOG_EMERG, 0, main_server,
@@ -265,7 +265,7 @@
         pm_main(main_server, configpool);
 
         ap_log_error(APLOG_MARK, APLOG_INFO, 0, main_server,
-                     "mod_fcgid: Process manager %d stopped", getpid());
+                     "mod_fcgid: Process manager %" APR_PID_T_FMT " stopped", getpid());
         exit(0);
     } else if (rv != APR_INPARENT) {
         ap_log_error(APLOG_MARK, APLOG_EMERG, rv, main_server,

Modified: httpd/mod_fcgid/trunk/modules/fcgid/fcgid_proc_unix.c
URL: http://svn.apache.org/viewvc/httpd/mod_fcgid/trunk/modules/fcgid/fcgid_proc_unix.c?rev=813957&r1=813956&r2=813957&view=diff
==============================================================================
--- httpd/mod_fcgid/trunk/modules/fcgid/fcgid_proc_unix.c (original)
+++ httpd/mod_fcgid/trunk/modules/fcgid/fcgid_proc_unix.c Fri Sep 11 17:53:14 2009
@@ -233,7 +233,7 @@
     memset(&unix_addr, 0, sizeof(unix_addr));
     unix_addr.sun_family = AF_UNIX;
     apr_snprintf(unix_addr.sun_path, sizeof(unix_addr.sun_path) - 1,
-                 "%s/%d.%d", g_socket_dir, getpid(), g_process_counter++);
+                 "%s/%" APR_PID_T_FMT ".%d", g_socket_dir, getpid(), g_process_counter++);
     strncpy(procnode->socket_path, unix_addr.sun_path,
             sizeof(procnode->socket_path) - 1);
 
@@ -866,7 +866,7 @@
     /* Print log now */
     if (cgipath)
         ap_log_error(APLOG_MARK, APLOG_NOTICE, 0, main_server,
-                     "mod_fcgid: process %s(%d) exit(%s), %s",
+                     "mod_fcgid: process %s(%" APR_PID_T_FMT ") exit(%s), %s",
                      cgipath, procnode->proc_id->pid, diewhy, signal_info);
     else
         ap_log_error(APLOG_MARK, APLOG_NOTICE, 0, main_server,