diff options
author | Ryan Bloom <rbb@apache.org> | 2001-07-16 16:11:05 +0000 |
---|---|---|
committer | Ryan Bloom <rbb@apache.org> | 2001-07-16 16:11:05 +0000 |
commit | cbd2aad5630cb4e3005fe13fe5b150d117062839 (patch) | |
tree | 886c25dacc1462ca312253fd18f05fe3c616ce37 /test/testsockopt.c | |
parent | 8d234edbc348191b9e68f8cc562276a782fa9800 (diff) | |
download | apr-cbd2aad5630cb4e3005fe13fe5b150d117062839.tar.gz |
Added an inherit flag to apr_socket_create and other socket creation
functions. This allows APR programs to specify that a socket should
be passed to any child processes that are created. The inherit flag
is only meaningful if programs use apr_process_create(). This
also adds a couple of macros that allow APR types to set and unset
the inherit flag.
This also fixes Apache to use the new API.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61939 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testsockopt.c')
-rw-r--r-- | test/testsockopt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/testsockopt.c b/test/testsockopt.c index f0b9641bf..6cec1e1f2 100644 --- a/test/testsockopt.c +++ b/test/testsockopt.c @@ -103,7 +103,7 @@ int main(void) printf("Testing socket option functions.\n"); printf("\tCreating socket.........................."); - if ((stat = apr_socket_create(&sock, APR_INET, SOCK_STREAM, context)) + if ((stat = apr_socket_create(&sock, APR_INET, SOCK_STREAM, APR_NO_INHERIT, context)) != APR_SUCCESS){ printf("Failed to create a socket!\n"); exit(-1); |