Re: syslog function: Bad file descriptor

2014-08-06 Thread Corinna Vinschen
On Aug 5 22:35, D. Boland wrote: Corinna Vinschen wrote: Can you produce another strace for the overwriting case (non-R/O aliases) for comparison? Also, can you do the same strace with no syslogd running? It might be necessary to create a few test versions of Cygwin with more debug

Re: syslog function: Bad file descriptor

2014-08-06 Thread D. Boland
Hi Corinna, Corinna Vinschen wrote: On Aug 5 22:35, D. Boland wrote: Corinna Vinschen wrote: Can you produce another strace for the overwriting case (non-R/O aliases) for comparison? Also, can you do the same strace with no syslogd running? It might be necessary to create a

Re: syslog function: Bad file descriptor

2014-08-06 Thread Corinna Vinschen
On Aug 6 13:30, D. Boland wrote: Hi Corinna, Corinna Vinschen wrote: On Aug 5 22:35, D. Boland wrote: Corinna Vinschen wrote: Can you produce another strace for the overwriting case (non-R/O aliases) for comparison? Also, can you do the same strace with no syslogd

Re: syslog function: Bad file descriptor

2014-08-06 Thread Eric Blake
On 08/06/2014 05:30 AM, D. Boland wrote: Without looking into the sources, I'd assume there's a closelog() call missing prior to the descriptor close orgy. This closelog() call should fix the problem. It is exactly as you say. I found the close() orgy and put a closelog() prior to it.

syslog function: Bad file descriptor

2014-08-05 Thread D. Boland
Hi group, I'm still working on getting Sendmail working for Cygwin. I'm almost done, the devil is in the details... I'm getting the 'Bad file descriptor' system error after building the mail aliases database. The building itself is done successful, but logging the event to the system log fails

Re: syslog function: Bad file descriptor

2014-08-05 Thread Larry Hall (Cygwin)
On 08/05/2014 12:28 PM, D. Boland wrote: Hi group, I'm still working on getting Sendmail working for Cygwin. I'm almost done, the devil is in the details... I'm getting the 'Bad file descriptor' system error after building the mail aliases database. The building itself is done successful,

Re: syslog function: Bad file descriptor

2014-08-05 Thread Corinna Vinschen
Hi Daniel, On Aug 5 18:28, D. Boland wrote: Hi group, I'm still working on getting Sendmail working for Cygwin. I'm almost done, the devil is in the details... I'm getting the 'Bad file descriptor' system error after building the mail aliases database. The building itself is done

Re: syslog function: Bad file descriptor

2014-08-05 Thread Corinna Vinschen
On Aug 5 12:45, Larry Hall (Cygwin) wrote: On 08/05/2014 12:28 PM, D. Boland wrote: Hi group, I'm still working on getting Sendmail working for Cygwin. I'm almost done, the devil is in the details... I'm getting the 'Bad file descriptor' system error after building the mail aliases

Re: syslog function: Bad file descriptor

2014-08-05 Thread D. Boland
Larry Hall (Cygwin) wrote: On 08/05/2014 12:28 PM, D. Boland wrote: Hi group, I'm still working on getting Sendmail working for Cygwin. I'm almost done, the devil is in the details... I'm getting the 'Bad file descriptor' system error after building the mail aliases

Re: syslog function: Bad file descriptor

2014-08-05 Thread Corinna Vinschen
On Aug 5 19:43, D. Boland wrote: Corinna Vinschen wrote: Somehow the two are connected. The alias database (aliases.db) is built from 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

Re: syslog function: Bad file descriptor

2014-08-05 Thread D. Boland
Corinna Vinschen wrote: Can you produce another strace for the overwriting case (non-R/O aliases) for comparison? Also, can you do the same strace with no syslogd running? It might be necessary to create a few test versions of Cygwin with more debug output, but let's please see these