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 > t

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

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 nece

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 mo

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

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

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 > >

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 ma

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

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, but

Re: syslog-ng service fails: Error starting a service: QueryServiceStatus: Win32 error 1062

2012-03-27 Thread Ulrich Schmidt
Oh yes - you are right. And I had already seen it before I issued my record, sorry. But when I started the description I thought I would get somewhere and forgot about your experience. It is the same problem; after deleting syslog-ng.persist I could start the service. Thank you. Ulrich Ken Brown

Re: syslog-ng service fails: Error starting a service: QueryServiceStatus: Win32 error 1062

2012-03-27 Thread Ken Brown
On 3/27/2012 12:16 PM, Corinna Vinschen wrote: On Mar 27 11:40, Ken Brown wrote: On 3/27/2012 7:47 AM, Ulrich Schmidt wrote: $ cygrunsrv -S syslog-ng cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service was not started. This might be a known problem with sys

Re: syslog-ng service fails: Error starting a service: QueryServiceStatus: Win32 error 1062

2012-03-27 Thread Corinna Vinschen
On Mar 27 11:40, Ken Brown wrote: > On 3/27/2012 7:47 AM, Ulrich Schmidt wrote: > >$ cygrunsrv -S syslog-ng > >cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: > >The service was not started. > > This might be a known problem with syslog-ng. See the thread starting at >

Re: syslog-ng service fails: Error starting a service: QueryServiceStatus: Win32 error 1062

2012-03-27 Thread Ken Brown
On 3/27/2012 7:47 AM, Ulrich Schmidt wrote: $ cygrunsrv -S syslog-ng cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service was not started. This might be a known problem with syslog-ng. See the thread starting at http://cygwin.com/ml/cygwin/2011-10/msg00449

Re: syslog-ng on Win7

2011-10-24 Thread Corinna Vinschen
On Oct 22 18:04, Ken Brown wrote: > I have syslog-ng running on two 64-bit Win7 systems, and the service > stops periodically and can't be restarted. The file > /var/log/syslog.ng log contains many lines saying > > Persistent configuration file is in invalid format, ignoring; > > But apparentl

Re: syslog-ng on Win7

2011-10-22 Thread Ken Brown
On 10/22/2011 6:04 PM, Ken Brown wrote: I have syslog-ng running on two 64-bit Win7 systems, and the service stops periodically and can't be restarted. The file /var/log/syslog.ng log contains many lines saying Sorry, the file is /var/log/syslog-ng.log . Persistent configuration file is in i

Re: syslog-ng: some packaging glitches

2009-09-28 Thread Corinna Vinschen
On Sep 28 16:46, Julio Costa wrote: > Hi, > > On Thu, Mar 19, 2009 at 17:36, Julio Emanuel <> wrote: > > Hi Corinna (I think this is with you), > > > > I've been struggling with a small (but deadly) problem in the current > > syslog-ng package: > > ~ $ cygcheck -c syslog-ng > > Cygwin Package Info

Re: syslog-ng: some packaging glitches

2009-09-28 Thread Julio Costa
Hi, On Thu, Mar 19, 2009 at 17:36, Julio Emanuel <> wrote: > Hi Corinna (I think this is with you), > > I've been struggling with a small (but deadly) problem in the current > syslog-ng package: > ~ $ cygcheck -c syslog-ng > Cygwin Package Information > Package              Version        Status >

Re: syslog-ng: some packaging glitches

2009-03-21 Thread Corinna Vinschen
On Mar 20 14:39, Julio Emanuel wrote: > Answering to myself: after some source code analysis, I've arrived to > this tiny function in misc.c: > > gboolean > resolve_user(const char *user, uid_t *uid) > { > struct passwd *pw; > > *uid = 0; > if (*user) > return FALSE; > > pw = getpwna

Re: syslog-ng: some packaging glitches

2009-03-20 Thread Julio Emanuel
On Thu, Mar 19, 2009 at 23:49, Julio Emanuel wrote: > On Thu, Mar 19, 2009 at 18:29, Corinna Vinschen wrote: >> >>> Now, for the part I didn't manage to solve yet: the syslog-ng service >>> also spits this warning (error?) when starting: "Error resolving user; >>> user='system'", but I have the 'va

Re: syslog-ng: some packaging glitches

2009-03-19 Thread Julio Emanuel
On Thu, Mar 19, 2009 at 18:29, Corinna Vinschen wrote: > On Mar 19 16:36, Julio Emanuel wrote: >> Hi Corinna (I think this is with you), > > Nevertheless, this is the wrong mailing list.  Next time, please report > problems always to the cygwin AT cygwin dot com ML, except you're a > package mainta

Re: syslog-ng 3.0.1 has been released => Cygwin status?

2009-01-14 Thread Corinna Vinschen
On Jan 14 11:06, Joost De Cock wrote: > Hello there, > > I noticed that syslog-ng 3.0.1 has been released > on > Jan 12, 2009 and it looks very yummi to me. > > Now, the current syslog-ng version in Cygwin (2.0.7) was release

Re: syslog-ng-config errors

2007-11-13 Thread Tony Benham
Dave Korn artimi.com> writes: > > On 13 November 2007 10:25, Tony Benham wrote: > > > I ran mkpasswd -d domain >> /etc/passwd to recreate passwd. But the problem > > remains. I cannot see the SYSTEM user in the file. Is there a switch for > > mkpasswd I need to use ? > > Try -l *as well*.

RE: syslog-ng-config errors

2007-11-13 Thread Dave Korn
On 13 November 2007 10:25, Tony Benham wrote: > I ran mkpasswd -d domain >> /etc/passwd to recreate passwd. But the problem > remains. I cannot see the SYSTEM user in the file. Is there a switch for > mkpasswd I need to use ? Try -l *as well*. Then no need to append: mkpasswd -l -d > /etc/p

Re: syslog-ng-config errors

2007-11-13 Thread Tony Benham
Corinna Vinschen cygwin.com> writes: > > On Nov 12 18:22, Tony Benham wrote: > > I've decided to run syslog-ng on my cygwin installation. I updated to latest > > version 2.0.5.1. When I run syslog-ng-config I get four errors > > setfacl : illegal acl entries > > > > Is this to be expected ? >

Re: syslog-ng-config errors

2007-11-12 Thread Corinna Vinschen
On Nov 12 18:22, Tony Benham wrote: > I've decided to run syslog-ng on my cygwin installation. I updated to latest > version 2.0.5.1. When I run syslog-ng-config I get four errors > setfacl : illegal acl entries > > Is this to be expected ? All four setfacl calls try to add the SYSTEM user to fi

Re: syslog LOG_PERROR option and newline

2005-12-31 Thread Corinna Vinschen
On Dec 31 22:38, Hiroki Sakagami wrote: > When I use LOG_PERROR option on openlog() call, syslog() does not > append a newline to the log message. Is this an intentional behavior? It's a bug. I've fixed it in CVS. Thanks for the report, Corinna -- Corinna Vinschen Please, se

Re: Syslog "event source" registration [Was Re: Suggest cygrunsrv extension: --pidfile option (patch included)]

2005-11-30 Thread Brian Dessent
Igor Pechtchanski wrote: > Why complicate openlog()? Let the Cygwin applications that use openlog() > do this (e.g., in a postinstall script). We could even add a utility > package in "Base", similar to "editrights", that contains scripts for > adding and removing this setting (something like 'r

Re: Syslog-ng

2005-06-30 Thread Corinna Vinschen
On Jun 30 16:47, Tony Karakashian wrote: > Following your advice, I installed the default syslog as a > Windows service, and /dev/log is created, but only when syslog is > running. How do I create it so it's always available? You don't. /dev/log is supposed to be a AF_UNIX/AF_LOCAL socket create

Re: Syslog-ng

2005-06-30 Thread Tony Karakashian
> Dunno what you're up to but I'm running syslog from inetutils just > fine. Cygwin tries to syslog on /dev/log if it's available (it's > usually created by syslog) and there's also a /dev/kmsg pipe which > would be utilized for kernel messages ... *if* Cygwin would have > anything like kernel mes

Re: Syslog-ng

2005-06-30 Thread Corinna Vinschen
On Jun 30 15:19, Tony Karakashian wrote: > I've seen lots of people who got syslog-ng working on their cygwin > boxes. Latest version compiles just fine out of the box, but not sure > what I should put in for a source in the syslog-ng.conf? Default for > Linux is to use /proc/kmesg, but we don't

Re: Syslog daemon (yes, I read the archives)

2003-09-11 Thread Christopher Faylor
On Fri, Sep 12, 2003 at 04:40:27PM +1000, David O'Shea wrote: >Hi all, > >>From reading the archives there seem to be some requests from people >to have the ability to use a syslog daemon instead of the Windows >Event Log or C:\CYGWIN_SYSLOG.TXT for syslog output. I would also >like that. > >I wou

Re: syslog

2002-10-04 Thread Pavel Tsekov
On Fri, 4 Oct 2002, Christoffer Walther wrote: > Where is the syslog daemon? > There is no syslog daemon in Cygwin. The Cygwin POSIX emulation layer takes care about syslog requests. On NT like systems it logs to the event manager, on Win9x and ME a file is created in the root of drive C:.