diff options
author | gregames <gregames@13f79535-47bb-0310-9956-ffa450edef68> | 2001-04-11 02:01:23 +0000 |
---|---|---|
committer | gregames <gregames@13f79535-47bb-0310-9956-ffa450edef68> | 2001-04-11 02:01:23 +0000 |
commit | 324f9ff375617c08ad19f23eb0176850eaba854c (patch) | |
tree | 450a18eaa7b8ac4bfa5d1a258e22e4ec5b9f7156 /threadproc/os2 | |
parent | 2bea674a663e27d821f596f989b72bbf6d54a950 (diff) | |
download | libapr-324f9ff375617c08ad19f23eb0176850eaba854c.tar.gz |
Fix the naming of the apr_threadattr_detach_xxx functions. get and set were
reversed.
This may have broken the Unix threaded mpm's when they started using the
bogus "set" function. A likely symptom would be failure to stop a threaded
process cleanly.
Note: it appears these functions are essentially no-ops except in Unix.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61495 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc/os2')
-rw-r--r-- | threadproc/os2/thread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/threadproc/os2/thread.c b/threadproc/os2/thread.c index aa85f43f1..0f15e6fe3 100644 --- a/threadproc/os2/thread.c +++ b/threadproc/os2/thread.c @@ -77,7 +77,7 @@ apr_status_t apr_threadattr_create(apr_threadattr_t **new, apr_pool_t *cont) -apr_status_t apr_threadattr_detach_get(apr_threadattr_t *attr, apr_int32_t on) +apr_status_t apr_threadattr_detach_set(apr_threadattr_t *attr, apr_int32_t on) { attr->attr |= APR_THREADATTR_DETACHED; return APR_SUCCESS; @@ -85,7 +85,7 @@ apr_status_t apr_threadattr_detach_get(apr_threadattr_t *attr, apr_int32_t on) -apr_status_t apr_threadattr_detach_set(apr_threadattr_t *attr) +apr_status_t apr_threadattr_detach_get(apr_threadattr_t *attr) { return (attr->attr & APR_THREADATTR_DETACHED) ? APR_DETACH : APR_NOTDETACH; } |