Return-Path: Delivered-To: new-httpd-archive@hyperreal.org Received: (qmail 3329 invoked by uid 6000); 11 Jan 1998 16:48:50 -0000 Received: (qmail 3309 invoked from network); 11 Jan 1998 16:48:47 -0000 Received: from gate-isdn.ukweb.com (194.152.65.149) by taz.hyperreal.org with SMTP; 11 Jan 1998 16:48:47 -0000 Received: from (ecstasy.localnet) [192.168.2.4] by gate-isdn.ukweb.com with smtp (Exim 1.81 #1) id 0xrQaD-0007KN-00; Sun, 11 Jan 1998 16:49:57 +0000 Date: Sun, 11 Jan 1998 16:48:33 +0000 (GMT) From: Paul Sutton To: new-httpd@hyperreal.org Subject: WIN32: patch to allow for Doug's -c option Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org Apache on Win32 curently uses the -c command line option internally when running children. This means it can't be used for Doug's -c "cmd" option. The internal -c should be changed. Say to -Z, which is already reserved on Unix for Unix specific functionality (SIGSTOP, which doesn't even exist on NT). This patch makes Win32 use -Z for its internal use, rather than -c. //pcs Index: http_main.c =================================================================== RCS file: /export/home/cvs/apachen/src/main/http_main.c,v retrieving revision 1.263 diff -u -r1.263 http_main.c --- http_main.c 1998/01/07 16:46:06 1.263 +++ http_main.c 1998/01/11 16:45:49 @@ -4456,7 +4456,7 @@ ap_assert(*ev); pass_argv[0] = argv[0]; - pass_argv[1] = "-c"; + pass_argv[1] = "-Z"; pass_argv[2] = buf; for (i = 1; i < argc; i++) { pass_argv[i + 2] = argv[i]; @@ -4731,10 +4731,10 @@ setup_prelinked_modules(); - while ((c = getopt(argc, argv, "Xd:f:vVhlc:ius")) != -1) { + while ((c = getopt(argc, argv, "Xd:f:vVhlZ:ius")) != -1) { switch (c) { #ifdef WIN32 - case 'c': + case 'Z': exit_event = open_event(optarg); APD2("child: opened process event %s", optarg); cp = strchr(optarg, '_');