util_nw.c revision f8c08e81082fcc33892f3ad71e9001e12400bc04
842ae4bd224140319ae7feec1872b93dfd491143fielding/* ====================================================================
842ae4bd224140319ae7feec1872b93dfd491143fielding * The Apache Software License, Version 1.1
842ae4bd224140319ae7feec1872b93dfd491143fielding *
842ae4bd224140319ae7feec1872b93dfd491143fielding * Copyright (c) 2000-2002 The Apache Software Foundation. All rights
842ae4bd224140319ae7feec1872b93dfd491143fielding * reserved.
842ae4bd224140319ae7feec1872b93dfd491143fielding *
2d2eda71267231c2526be701fe655db125852c1ffielding * Redistribution and use in source and binary forms, with or without
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd * modification, are permitted provided that the following conditions
2d2eda71267231c2526be701fe655db125852c1ffielding * are met:
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd *
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd * 1. Redistributions of source code must retain the above copyright
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd * notice, this list of conditions and the following disclaimer.
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd *
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd * 2. Redistributions in binary form must reproduce the above copyright
2d2eda71267231c2526be701fe655db125852c1ffielding * notice, this list of conditions and the following disclaimer in
2d2eda71267231c2526be701fe655db125852c1ffielding * the documentation and/or other materials provided with the
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh * distribution.
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh *
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh * 3. The end-user documentation included with the redistribution,
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh * if any, must include the following acknowledgment:
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh * "This product includes software developed by the
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh * Apache Software Foundation (http://www.apache.org/)."
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh * Alternately, this acknowledgment may appear in the software itself,
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh * if and wherever such third-party acknowledgments normally appear.
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh *
2d2eda71267231c2526be701fe655db125852c1ffielding * 4. The names "Apache" and "Apache Software Foundation" must
2d2eda71267231c2526be701fe655db125852c1ffielding * not be used to endorse or promote products derived from this
2d2eda71267231c2526be701fe655db125852c1ffielding * software without prior written permission. For written
fcc25eda7b150e226d3c1cdaea66a943d3fdee4erbb * permission, please contact apache@apache.org.
b980ad7fdc218b4855cde9f75a747527f50c554dwrowe *
ab5581cc78e9d865b0a6ab1404c53347b3276968rbb * 5. Products derived from this software may not be called "Apache",
92f3af936ce61f25358a3ee4f28df2f6d62040dfdreid * nor may "Apache" appear in their name, without prior written
fcc25eda7b150e226d3c1cdaea66a943d3fdee4erbb * permission of the Apache Software Foundation.
c9a95767fbf0f5fb0976a06b97a256033925e433rbb *
fd0edaa8e3d4dd67d0604ccef2e96b071db96643fielding * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
2d2eda71267231c2526be701fe655db125852c1ffielding * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
2d2eda71267231c2526be701fe655db125852c1ffielding * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
2d2eda71267231c2526be701fe655db125852c1ffielding * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
2d2eda71267231c2526be701fe655db125852c1ffielding * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
52de7a47876ce1748910cf3a0ee97f78842fab54rederpj * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
52de7a47876ce1748910cf3a0ee97f78842fab54rederpj * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
52de7a47876ce1748910cf3a0ee97f78842fab54rederpj * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
52de7a47876ce1748910cf3a0ee97f78842fab54rederpj * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
52de7a47876ce1748910cf3a0ee97f78842fab54rederpj * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
52de7a47876ce1748910cf3a0ee97f78842fab54rederpj * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
52de7a47876ce1748910cf3a0ee97f78842fab54rederpj * SUCH DAMAGE.
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh * ====================================================================
fd492f9543f14fb5bae78e04b135c3448eb9cc56rbb *
fd492f9543f14fb5bae78e04b135c3448eb9cc56rbb * This software consists of voluntary contributions made by many
fd492f9543f14fb5bae78e04b135c3448eb9cc56rbb * individuals on behalf of the Apache Software Foundation. For more
fd492f9543f14fb5bae78e04b135c3448eb9cc56rbb * information on the Apache Software Foundation, please see
2d2eda71267231c2526be701fe655db125852c1ffielding * <http://www.apache.org/>.
2d2eda71267231c2526be701fe655db125852c1ffielding *
2d2eda71267231c2526be701fe655db125852c1ffielding * Portions of this software are based upon public domain software
2d2eda71267231c2526be701fe655db125852c1ffielding * originally written at the National Center for Supercomputing Applications,
2d2eda71267231c2526be701fe655db125852c1ffielding * University of Illinois, Urbana-Champaign.
61fd0cab072a05b855cbef9c585702401ac5ae29rbb */
61fd0cab072a05b855cbef9c585702401ac5ae29rbb
61fd0cab072a05b855cbef9c585702401ac5ae29rbb#include "httpd.h"
61fd0cab072a05b855cbef9c585702401ac5ae29rbb#include "http_log.h"
61fd0cab072a05b855cbef9c585702401ac5ae29rbb
2d2eda71267231c2526be701fe655db125852c1ffielding#include <netware.h>
2d2eda71267231c2526be701fe655db125852c1ffielding
8af88bd6958b80c224e964892b8237720b13ab1ajerenkrantzint nlmUnloadSignaled();
8af88bd6958b80c224e964892b8237720b13ab1ajerenkrantz
8af88bd6958b80c224e964892b8237720b13ab1ajerenkrantzAP_DECLARE(apr_status_t) ap_os_create_privileged_process(
8af88bd6958b80c224e964892b8237720b13ab1ajerenkrantz const request_rec *r,
50e60f30bdc074fbc887f0b98f4d570457ac97c9brianp apr_proc_t *newproc, const char *progname,
50e60f30bdc074fbc887f0b98f4d570457ac97c9brianp const char * const *args,
50e60f30bdc074fbc887f0b98f4d570457ac97c9brianp const char * const *env,
50e60f30bdc074fbc887f0b98f4d570457ac97c9brianp apr_procattr_t *attr, apr_pool_t *p)
50e60f30bdc074fbc887f0b98f4d570457ac97c9brianp{
50e60f30bdc074fbc887f0b98f4d570457ac97c9brianp return apr_proc_create(newproc, progname, args, env, attr, p);
50e60f30bdc074fbc887f0b98f4d570457ac97c9brianp}
50e60f30bdc074fbc887f0b98f4d570457ac97c9brianp
50e60f30bdc074fbc887f0b98f4d570457ac97c9brianpint _NonAppCheckUnload( void )
50e60f30bdc074fbc887f0b98f4d570457ac97c9brianp{
8af88bd6958b80c224e964892b8237720b13ab1ajerenkrantz return nlmUnloadSignaled();
bfb62a96023822c56c9120e4ee627d4091cc59c2rbb}
bfb62a96023822c56c9120e4ee627d4091cc59c2rbb