X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:to:subject:message-id:reply-to
	:references:mime-version:content-type:in-reply-to; q=dns; s=
	default; b=u3MqD3+JJGVU8FfgqxSRTHXGodhFsik/oNl9e46yxm4zIcVPe05l7
	srJ2CXeV6yioflUOCoKNHRy0OUtxY3ZOHFjIClaY8zX+4zPXNuGRd+SJdxHAALaz
	nhRf5KQViXPjbL/8IvIT9uxKAopvl4RZsVUvC2YkitkrDOyEE2hhbo=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:to:subject:message-id:reply-to
	:references:mime-version:content-type:in-reply-to; s=default;
	 bh=YAQrwk5GIzVyK0yldM4AyCpIrkc=; b=Frvsf8mojyIJ3lYcPfBhvgDK1RsB
	uIZb6sey2kU16ZjVRP4GYGJIKmj8aTtVwCadj0Hlw/SESSXSXQy2DzKae/cTASty
	XdHp8/TV8MA3XHXkMd3iCwrY3Fu7/2qT2FZWxnP36qgNzRu9UfZopwgTLXW2MVUj
	kNzTQAyx5x3KrLo=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2
X-HELO: calimero.vinschen.de
Date: Tue, 5 Aug 2014 18:48:42 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: syslog function: Bad file descriptor
Message-ID: <20140805164842.GA13601@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <53E10628.3C42FD6F@boland.nl>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;	protocol="application/pgp-signature"; boundary="xHFwDpU9dbj6ez1V"
Content-Disposition: inline
In-Reply-To: <53E10628.3C42FD6F@boland.nl>
User-Agent: Mutt/1.5.23 (2014-03-12)

--xHFwDpU9dbj6ez1V
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi Daniel,

On Aug  5 18:28, D. Boland wrote:
> Hi group,
>=20
> I'm still working on getting Sendmail working for Cygwin. I'm almost done=
, the devil
> is in the details...
>=20
> I'm getting the 'Bad file descriptor' system error after building the mai=
l aliases
> database. The building itself is done successful, but logging the event t=
o the
> system log fails with this message.
>=20
> Somehow the two are connected. The alias database (aliases.db) is built f=
rom a plain
> text file (aliases). If I leave the aliases file writable to the sendmail=
 user, I
> find that the error message strings have been put right into the alias te=
xt-file:
>=20
> $ cat /etc/mail/aliases
> <21>sendmail: PID 1848: alias database /etc/mail/aliases rebuilt by smmsp=
senet: root
> news: root
> webmaster: root
> www: root
> ftp: root
> abuse: root
> noc: root
> security: root
> root: SYSTEM
> <22>sendmail: PID 1848: /etc/mail/aliases: 9 aliases, longest 6 bytes, 82=
 bytes
> total
>=20
> If I make the 'aliases' file read-only, then the file is not corrupted, b=
ut the
> error occurs.

I don't see that this has to do with syslog.  There's a writev to fd 3,
but you stripped the strace so we don't know what fd 3 is connected to.
Also, syslog writes the output to the Windows event log by default,
unless you have a syslog daemon running, connected to /dev/log.

So I guess we first have to know what fd 3 is connected to, and then
how to reproduce the issue.


Corinna

--xHFwDpU9dbj6ez1V
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJT4QrqAAoJEPU2Bp2uRE+gQRsP/3vNzkfR3W8A9hBy+AERg2r1
dfZml+scDM4+kSIbd1LixIfYXsNesp+i5a0UQet+D1515mj7ymBTRCdq3xfy7ovX
cGveStkemfzlWLBRAJEumSgULZGVG2yFZFnCnlgCdujq42LNHReO9HH4Vfe4h+KR
4vT1dqNh8T9cP9ZM3GXn1TN6Qs12HbIuXagh40EidH99+3pZcrzIXskByPCJ6d5N
IhczUcbC60+sws4FG4tX7TSmDi040WGUkeyJP1IXaAllIRBLMrcAQuRSl0kNguM4
SHeWJsaLU1IJO7e7MPywiUk8QPnnENgQXX+Rntv/ZCQgv0EBFOCkd43w/PQh0wQe
GHPYhbkVDp2IRoba/l4qcOc3Z6/dztxjMMzTrf1OcYvSJlSk6AYrNM9MQn8Ti1bl
9OpELAYY6sKGOZxaOgiQFComq8bCNvfJ0pCaWWrl0JPRmaFhbvpHfFIp9d9Jg4ZB
Yh1swyyIZsqUKlb3ltDFNPdgFNwl2DgaOwM/ssZWzEhG2YgfWvlNTZdZFW3hy0kP
Akd/Z3due9nMC8x/TfeqIsZryGxcb8GyCr4pghUFyIuteE6NCCl95ET7PJsBJy54
I3IoijQRjbhsJnBKQDvTfkIDcEeXXE/nAlIY1dooku1Njp3F7Agqwuf1GwymZwxD
CTM4idDJ20GgYn1nEsok
=SRFR
-----END PGP SIGNATURE-----

--xHFwDpU9dbj6ez1V--
