You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Ali Goins <al...@hotmail.com> on 2001/02/05 21:26:40 UTC
os-windows/7198: Rotatelogs on NT yeilds an error when ran as a service.
>Number: 7198
>Category: os-windows
>Synopsis: Rotatelogs on NT yeilds an error when ran as a service.
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: apache
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Mon Feb 05 12:30:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: aligoins@hotmail.com
>Release: 1.3.17
>Organization:
apache
>Environment:
This error occured on Windows NT Server with Service Patch 6a. The compiler
used was Microsoft Visual C++ 6.0.
>Description:
When Apache on NT is started as a service with Rotatelogs enabled, the specified file rotates however the following message appears in the error.log:
[error] (9) Bad file descriptor: dup2(stdin) failed
This error doesn't occur when running apache from the command line.
>How-To-Repeat:
Add the rotate logs directive in the http.conf file
TransferLog "| rotatelogs.exe logs/access.log 60"
The error can be found in the error.log upon restart.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <ap...@Apache.Org> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or ]
["Re: general/1098:"). If the subject doesn't match this ]
[pattern, your message will be misfiled and ignored. The ]
["apbugs" address is not added to the Cc line of messages from ]
[the database automatically because of the potential for mail ]
[loops. If you do not include this Cc, your reply may be ig- ]
[nored unless you are responding to an explicit request from a ]
[developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]