<?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 Help with Error message please in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-error-message-please/m-p/2804565#M82709</link>
    <description>Hello, we are a development house that, uses oracle and a product called uniface for our application. I created a script to import records using uniface's import utility called idf. I had a filesize limitation problem, so I introduced named pipes to gzip the trx files and gunzip to import them. I recieved an error message during the import of one of our tables data. "Interrupted system call" from this point it hung. The command that was issued through the script is &lt;BR /&gt;gnuzip &amp;lt; tablename.trx.gz &amp;gt; tablename.trx &amp;amp;&lt;BR /&gt;sleep&lt;BR /&gt;then the import of the trx using the uniface import utility. My question is, is this a system level error, that requires any kernel parameter modifications, or is this erro message not related to kernel or processes?</description>
    <pubDate>Wed, 11 Sep 2002 19:14:59 GMT</pubDate>
    <dc:creator>Gaetano_1</dc:creator>
    <dc:date>2002-09-11T19:14:59Z</dc:date>
    <item>
      <title>Help with Error message please</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-error-message-please/m-p/2804565#M82709</link>
      <description>Hello, we are a development house that, uses oracle and a product called uniface for our application. I created a script to import records using uniface's import utility called idf. I had a filesize limitation problem, so I introduced named pipes to gzip the trx files and gunzip to import them. I recieved an error message during the import of one of our tables data. "Interrupted system call" from this point it hung. The command that was issued through the script is &lt;BR /&gt;gnuzip &amp;lt; tablename.trx.gz &amp;gt; tablename.trx &amp;amp;&lt;BR /&gt;sleep&lt;BR /&gt;then the import of the trx using the uniface import utility. My question is, is this a system level error, that requires any kernel parameter modifications, or is this erro message not related to kernel or processes?</description>
      <pubDate>Wed, 11 Sep 2002 19:14:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-error-message-please/m-p/2804565#M82709</guid>
      <dc:creator>Gaetano_1</dc:creator>
      <dc:date>2002-09-11T19:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Error message please</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-error-message-please/m-p/2804566#M82710</link>
      <description>Hi Gaetano,&lt;BR /&gt;&lt;BR /&gt;I don't really understand your usage of the "gunzip" command here.&lt;BR /&gt;&lt;BR /&gt;To achieve the same results as your command you could simply use:&lt;BR /&gt;"gunzip tablename.trx"&lt;BR /&gt;&lt;BR /&gt;Is there something special you need to do by using redirected STDIN and STDOUT?&lt;BR /&gt;&lt;BR /&gt;Ollie.</description>
      <pubDate>Thu, 12 Sep 2002 03:51:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-error-message-please/m-p/2804566#M82710</guid>
      <dc:creator>Ollie R</dc:creator>
      <dc:date>2002-09-12T03:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Error message please</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-error-message-please/m-p/2804567#M82711</link>
      <description>Interrupted system calls are quite common, and usually nothing to worry about, if your applications are written correctly. They are not a sign of any kernel tuning problem. Many applications get this error and deal with it so transparently that you never see it. If your program aborts with this error, it usually means that you need to make a minor code change to restart reads if they fail with an EINTR error.&lt;BR /&gt;&lt;BR /&gt;If you typed ^C or ^\ in frustration when the application appeared to hang, you might have indirectly caused that error message to appear.&lt;BR /&gt;&lt;BR /&gt;The 'interrupted system call' message corresponds to the EINTR error code from a system call.  Quoting from the manual page for&lt;BR /&gt;read(2):&lt;BR /&gt;&lt;BR /&gt;If a read() is interrupted by a signal before it reads any data, it will return -1 with errno set to [EINTR].&lt;BR /&gt;&lt;BR /&gt;Quoting from the manual page for errno(2):&lt;BR /&gt;&lt;BR /&gt;[EINTR]        Interrupted system call.  An asynchronous signal (such as interrupt or quit), which the user has elected to catch, occurred during a system call.  If execution is&lt;BR /&gt;resumed after processing the signal, it will appear as if the interrupted system call returned this error condition unless the system call is restarted (see sigvector(2)).&lt;BR /&gt;&lt;BR /&gt;A sample program:&lt;BR /&gt;Compile and run this, then type ^C after&lt;BR /&gt;it starts but before typing anything else:&lt;BR /&gt;&lt;BR /&gt;#include &lt;UNISTD.H&gt;&lt;BR /&gt;#include &lt;SYS&gt;&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;&lt;BR /&gt;/* Define a handler to trap ^C when typed but do nothing */&lt;BR /&gt;&lt;BR /&gt;void&lt;BR /&gt;handler(int n)&lt;BR /&gt;{&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;main(int argc, char *argv[])&lt;BR /&gt;{&lt;BR /&gt;  char buf[100];  /* a buffer for read */&lt;BR /&gt;  signal(SIGINT, handler); /* catch ^C */&lt;BR /&gt;  /* read 100 bytes from tty */&lt;BR /&gt;  /* and complain if can't complete read */&lt;BR /&gt;  if (read(0, &amp;amp;buf, 100) != 100)&lt;BR /&gt;         perror("read");/* show error reason */&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;When run, if I type ^C the program&lt;BR /&gt;replies:&lt;BR /&gt;&lt;BR /&gt;read: Interrupted system call&lt;BR /&gt;&lt;BR /&gt;Intelligent programs will often test the result from the read() and restart the read silently if they encounter this error.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STDIO.H&gt;&lt;/SYS&gt;&lt;/UNISTD.H&gt;</description>
      <pubDate>Thu, 12 Sep 2002 04:24:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-error-message-please/m-p/2804567#M82711</guid>
      <dc:creator>doug hosking</dc:creator>
      <dc:date>2002-09-12T04:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Error message please</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-error-message-please/m-p/2804568#M82712</link>
      <description>Thank you all for your answers, I did make a minor change to my shell script, and Im not sure if that was the cause, but my script and update finished sucessfully without any errors. I simply added the sleep after feeding the pipe before doing the actuall import.&lt;BR /&gt;&lt;BR /&gt;Thanks again&lt;BR /&gt;&lt;BR /&gt;Ps. thank you for all the c but unfortunatly thats just like japaneese to me. Never really had the time to sit and learn C. Its on my list of things to do before I pass.</description>
      <pubDate>Thu, 12 Sep 2002 14:52:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-error-message-please/m-p/2804568#M82712</guid>
      <dc:creator>Gaetano_1</dc:creator>
      <dc:date>2002-09-12T14:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Error message please</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-error-message-please/m-p/2804569#M82713</link>
      <description>The gunzip is only feeding a named pipe, thats why you see &amp;lt; &amp;gt; the named pipe name is tablename.trx, created with the mkfifo command. hence to put feed of this pipe. gunzip &amp;lt; tablename.trx.gx &amp;gt; tablename.trx. I did find a solution to my problem though thank you.</description>
      <pubDate>Thu, 12 Sep 2002 15:13:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-error-message-please/m-p/2804569#M82713</guid>
      <dc:creator>Gaetano_1</dc:creator>
      <dc:date>2002-09-12T15:13:15Z</dc:date>
    </item>
  </channel>
</rss>

