]> granicus.if.org Git - apache/commitdiff
fix the type of ap_my_pid and make it static since it is used
authorJeff Trawick <trawick@apache.org>
Fri, 2 Mar 2001 18:52:23 +0000 (18:52 +0000)
committerJeff Trawick <trawick@apache.org>
Fri, 2 Mar 2001 18:52:23 +0000 (18:52 +0000)
in only one file per build (prefork.c or threaded.c)
PR: 6980

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88423 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/prefork/mpm.h
server/mpm/prefork/prefork.c
server/mpm/threaded/mpm.h
server/mpm/threaded/threaded.c

index df62184d83c2da6da5a5f51a73ef30758669be41..0f4163ece3bf844aaa7179beee8167ade82c8700 100644 (file)
@@ -74,6 +74,5 @@
 extern int ap_threads_per_child;
 extern int ap_max_daemons_limit;
 extern server_rec *ap_server_conf;
-extern int ap_my_pid;
 extern char ap_coredump_dir[MAX_STRING_LEN];
 #endif /* APACHE_MPM_PREFORK_H */
index 6b3b5f41af58610afc4653a77b9d2073f0887546..6693f3710435b6a787f5ef9c814fc6d8e184bc4e 100644 (file)
@@ -172,7 +172,7 @@ static int one_process = 0;
 static apr_pool_t *pconf;              /* Pool for config stuff */
 static apr_pool_t *pchild;             /* Pool for httpd child stuff */
 
-int ap_my_pid; /* it seems silly to call getpid all the time */
+static pid_t ap_my_pid;        /* it seems silly to call getpid all the time */
 #ifndef MULTITHREAD
 static int my_child_num;
 #endif
index be4ada3ad473a1b187ac0abc93429bbcd2ff8e6d..0f47e049569a7c643f4530b14dcbcfda935c9cf2 100644 (file)
@@ -71,7 +71,6 @@
 extern int ap_threads_per_child;
 extern int ap_max_requests_per_child;
 extern int ap_max_daemons_limit;
-extern unsigned int ap_my_pid;
 extern server_rec *ap_server_conf;
 extern char ap_coredump_dir[MAX_STRING_LEN];
 
index ecdf8929a34bad33740b4199274d73bd47e4c2d9..fe591b7707144c40afa8bdd6a80e743dd4859ddc 100644 (file)
@@ -155,7 +155,7 @@ int raise_sigstop_flags;
 static apr_pool_t *pconf;              /* Pool for config stuff */
 static apr_pool_t *pchild;             /* Pool for httpd child stuff */
 
-unsigned int ap_my_pid; /* Linux getpid() doesn't work except in main 
+static pid_t ap_my_pid; /* Linux getpid() doesn't work except in main 
                            thread. Use this instead */
 /* Keep track of the number of worker threads currently active */
 static int worker_thread_count;