diff options
author | Jim Jagielski <jim@apache.org> | 2007-06-04 13:07:48 +0000 |
---|---|---|
committer | Jim Jagielski <jim@apache.org> | 2007-06-04 13:07:48 +0000 |
commit | 8f5558a1f1f31c2d8232deaf1d43794e8f052b66 (patch) | |
tree | 53b7c82fe0d09d5845ae35a72dd9ba6dfd0b252e | |
parent | 7aa6c2295ab5f7803b408fd6d0190436f80d5cac (diff) | |
download | httpd-pid-table.tar.gz |
Use apr funchttpd-pid-table
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/httpd-pid-table@544147 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | server/mpm_common.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/mpm_common.c b/server/mpm_common.c index 906888d2f6..341f580bc4 100644 --- a/server/mpm_common.c +++ b/server/mpm_common.c @@ -98,7 +98,7 @@ apr_table_t *ap_pid_table; int ap_in_pid_table(pid_t pid) { char apid[64]; const char *spid; - snprintf(apid, sizeof(apid), "%" APR_PID_T_FMT, pid); + apr_snprintf(apid, sizeof(apid), "%" APR_PID_T_FMT, pid); spid = apr_table_get(ap_pid_table, apid); if (spid && spid[0] == '1' && spid[1] == '\0') return 1; @@ -112,13 +112,13 @@ int ap_in_pid_table(pid_t pid) { void ap_set_pid_table(pid_t pid) { char apid[64]; - snprintf(apid, sizeof(apid), "%" APR_PID_T_FMT, pid); + apr_snprintf(apid, sizeof(apid), "%" APR_PID_T_FMT, pid); apr_table_set(ap_pid_table, apid, "1"); } void ap_unset_pid_table(pid_t pid) { char apid[64]; - snprintf(apid, sizeof(apid), "%" APR_PID_T_FMT, pid); + apr_snprintf(apid, sizeof(apid), "%" APR_PID_T_FMT, pid); apr_table_unset(ap_pid_table, apid); } |