I'm a bit of a Perl newbie, and while the answer to this may be in a doc somewhere, I can't find it despite my best efforts.
I'm working on a script that uses Sys::Syslog. The following three lines are towards the end of the script:
my $logfacility = "auth";
my $loglevel = "notice";
<snip>
openlog("HP-Alert","cons",$logfacility);
syslog ($loglevel,"Blocked all connects from %s due to %d connection
+s!", $connectdata[2], $alerts);
closelog;
The openlog call succeeds, but on my SPARC OpenBSD 2.9 system the syslog call seems to hang the script (^C is needed to get out). syslogd is running and everything else seems to look OK. Any ideas?
BTW, for the curious, it's a script to protect against outbound attacks from a honeypot; more details at Xwell.org.