bind() to /dev/log failed

2010-07-21 Thread Mansuri, Wasim (NSN - IN/Bangalore)
Hello All, I want to listen to /dev/log. For that I am using the following code. Please let me know whats the issue in the following code snip. Code I am running with root user. Thanks, wasim if ((sockfd = socket(AF_UNIX,SOCK_STREAM, 0)) == -1) { printf("Failed To open AF_UNIX Socket"

poll() returns even if there is data.

2010-07-22 Thread Mansuri, Wasim (NSN - IN/Bangalore)
I am trying to read some file using open and read system calls. Here in my code I am doing open than poll and if poll returns with the event POLLIN than read. Even if poll returns with the event POLLIN read returns 0, that means no data. My question here is, Am I using poll() proper

Re: bind() to /dev/log failed

2010-07-22 Thread Mansuri, Wasim (NSN - IN/Bangalore)
On 07/21/2010 11:29 PM, Mansuri, Wasim (NSN - IN/Bangalore) wrote: > > > Hello All, > > I want to listen to /dev/log. For that I am using the following code. > > Please let me know whats the issue in the following code snip. Code I am > running with root user. > > Tha

forwarding Syslog messages on localhost:514

2010-08-18 Thread Mansuri, Wasim (NSN - IN/Bangalore)
Hello, I have following problem with respect to syslogd on fedora13. With the following configuration in the /etc/syslog.conf i should be able to receive all syslog messages on localhost:514 port. *.* @localhost I am not getting anything on localhost:514. However if additionally i give foll

RE: forwarding Syslog messages on localhost:514

2010-08-18 Thread Mansuri, Wasim (NSN - IN/Bangalore)
Bill Davidsen [mailto:david...@tmr.com] Sent: Wednesday, August 18, 2010 11:35 PM To: Community support for Fedora users Subject: Re: forwarding Syslog messages on localhost:514 Mansuri, Wasim (NSN - IN/Bangalore) wrote: > Hello, > > I have following problem with respect to syslo

RE: forwarding Syslog messages on localhost:514

2010-08-18 Thread Mansuri, Wasim (NSN - IN/Bangalore)
work. -Original Message- From: Gavin Spurgeon [mailto:gspurg...@redhat.com] Sent: Wednesday, August 18, 2010 5:33 PM To: Community support for Fedora users Subject: Re: forwarding Syslog messages on localhost:514 -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/18/2010 12:48 PM, Mansuri, Wasim