hotshot has asked for the wisdom of the Perl Monks concerning the following question:
The problem is when the Unix syslog is down, every call to syslog() crashes my program. I read the man page and it says that setlogsock returns undef on failure but I guess it assumes that the syslog is up coz' I checked it's return value and came up with nothing.use Sys::Syslog qw(:DEFAULT setlogsock); setlogsock('unix'); openlog('Test', 'NULL', 'syslog'); syslog($priority, 'This is a test');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: syslog problems
by rr (Sexton) on Oct 24, 2002 at 15:57 UTC | |
|
Re: syslog problems
by grinder (Bishop) on Oct 24, 2002 at 14:27 UTC | |
|
Re: syslog problems
by sch (Pilgrim) on Oct 24, 2002 at 13:40 UTC |