long tlength = 0;
r->byterange = 2;
- r->boundary = ap_psprintf(r->pool, "%lx%lx",
+ r->boundary = ap_psprintf(r->pool, "%llx%lx",
r->request_time, (long) getpid());
while (internal_byterange(0, &tlength, r, &r_range, NULL, NULL));
ap_table_setn(r->headers_out, "Content-Length",
{
ap_table_setn(r->err_headers_out,
r->proxyreq ? "Proxy-Authenticate" : "WWW-Authenticate",
- ap_psprintf(r->pool, "Digest realm=\"%s\", nonce=\"%lu\"",
+ ap_psprintf(r->pool, "Digest realm=\"%s\", nonce=\"%llx\"",
ap_auth_name(r), r->request_time));
}
static const char *log_request_duration(request_rec *r, char *a)
{
- return ap_psprintf(r->pool, "%ld", (ap_now() - r->request_time) / AP_USEC_PER_SEC);
+ return ap_psprintf(r->pool, "%lld", (ap_now() - r->request_time) / AP_USEC_PER_SEC);
}
/* These next two routines use the canonical name:port so that log
static pthread_mutex_t thread_pool_parent_mutex;
static int child_num;
-static int my_pid; /* Linux getpid() doesn't work except in main thread. Use
- this instead */
+static unsigned int 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;
static pthread_mutex_t worker_thread_count_mutex;
ap_log_pid(pconf, ap_pid_fname);
/* Initialize cross-process accept lock */
- lock_fname = ap_psprintf(_pconf, "%s.%lu",
+ lock_fname = ap_psprintf(_pconf, "%s.%u",
ap_server_root_relative(_pconf, lock_fname),
my_pid);
rv = SAFE_ACCEPT(ap_create_lock(&process_accept_mutex, APR_MUTEX,
extern int ap_max_requests_per_child;
extern int ap_extended_status;
extern int ap_max_daemons_limit;
-extern int ap_my_pid;
+extern unsigned int ap_my_pid;
extern server_rec *ap_server_conf;
extern scoreboard *ap_scoreboard_image;
extern void clean_child_exit(int);
static ap_pool_t *pconf; /* Pool for config stuff */
static ap_pool_t *pchild; /* Pool for httpd child stuff */
-int ap_my_pid; /* Linux getpid() doesn't work except in main thread. Use
- this instead */
+unsigned int 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;
static pthread_mutex_t worker_thread_count_mutex;
ap_log_pid(pconf, ap_pid_fname);
/* Initialize cross-process accept lock */
- lock_fname = ap_psprintf(_pconf, "%s.%lu",
+ lock_fname = ap_psprintf(_pconf, "%s.%u",
ap_server_root_relative(_pconf, lock_fname),
ap_my_pid);
rv = ap_create_lock(&process_accept_mutex, APR_MUTEX, APR_CROSS_PROCESS,