<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Syslog.pm - abnormal end in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/syslog-pm-abnormal-end/m-p/3209263#M73388</link>
    <description>Hello, world &lt;BR /&gt;&lt;BR /&gt;I have perl-script (perl 5.8.1), that works as dettached (daemonized) process under Mandrake 9.2. In fact it is some kind of tcp-server for some service. As server it writes log to syslog thru Syslog.pm.&lt;BR /&gt;&lt;BR /&gt;It works fine without interruption day by day but sometime it dies with message:&lt;BR /&gt;&lt;BR /&gt;Modification of a read-only value attempted at /usr/lib/perl5/5.8.1/i386-linux-thread-multi/Sys/Syslog.pm line 302.&lt;BR /&gt;&lt;BR /&gt;Why??? This is source of Syslog.pm:&lt;BR /&gt;&lt;BR /&gt;sub syslog {&lt;BR /&gt;    local($priority) = shift;&lt;BR /&gt;    local($mask) = shift;&lt;BR /&gt;    local($message, $whoami);&lt;BR /&gt;    local(@words, $num, $numpri, $numfac, $sum);&lt;BR /&gt;    local($facility) = $facility;       # may need to change temporarily.&lt;BR /&gt;............................................&lt;BR /&gt;    $whoami .= "[$$]" if $lo_pid;&lt;BR /&gt;&lt;BR /&gt;    $mask =~ s/%m/$!/g;&lt;BR /&gt;    $mask .= "\n" unless $mask =~ /\n$/;&lt;BR /&gt;    $message = sprintf ($mask, @_);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Line 302 is : $message = sprintf ($mask, @_);&lt;BR /&gt;&lt;BR /&gt;What is the problem? Why $message became read-only value?&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;&lt;BR /&gt;--Igor</description>
    <pubDate>Thu, 04 Mar 2004 07:50:43 GMT</pubDate>
    <dc:creator>Igor I. Shulz</dc:creator>
    <dc:date>2004-03-04T07:50:43Z</dc:date>
    <item>
      <title>Syslog.pm - abnormal end</title>
      <link>https://community.hpe.com/t5/operating-system-linux/syslog-pm-abnormal-end/m-p/3209263#M73388</link>
      <description>Hello, world &lt;BR /&gt;&lt;BR /&gt;I have perl-script (perl 5.8.1), that works as dettached (daemonized) process under Mandrake 9.2. In fact it is some kind of tcp-server for some service. As server it writes log to syslog thru Syslog.pm.&lt;BR /&gt;&lt;BR /&gt;It works fine without interruption day by day but sometime it dies with message:&lt;BR /&gt;&lt;BR /&gt;Modification of a read-only value attempted at /usr/lib/perl5/5.8.1/i386-linux-thread-multi/Sys/Syslog.pm line 302.&lt;BR /&gt;&lt;BR /&gt;Why??? This is source of Syslog.pm:&lt;BR /&gt;&lt;BR /&gt;sub syslog {&lt;BR /&gt;    local($priority) = shift;&lt;BR /&gt;    local($mask) = shift;&lt;BR /&gt;    local($message, $whoami);&lt;BR /&gt;    local(@words, $num, $numpri, $numfac, $sum);&lt;BR /&gt;    local($facility) = $facility;       # may need to change temporarily.&lt;BR /&gt;............................................&lt;BR /&gt;    $whoami .= "[$$]" if $lo_pid;&lt;BR /&gt;&lt;BR /&gt;    $mask =~ s/%m/$!/g;&lt;BR /&gt;    $mask .= "\n" unless $mask =~ /\n$/;&lt;BR /&gt;    $message = sprintf ($mask, @_);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Line 302 is : $message = sprintf ($mask, @_);&lt;BR /&gt;&lt;BR /&gt;What is the problem? Why $message became read-only value?&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;&lt;BR /&gt;--Igor</description>
      <pubDate>Thu, 04 Mar 2004 07:50:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/syslog-pm-abnormal-end/m-p/3209263#M73388</guid>
      <dc:creator>Igor I. Shulz</dc:creator>
      <dc:date>2004-03-04T07:50:43Z</dc:date>
    </item>
  </channel>
</rss>

