From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,dc71e1f90e798fb9 X-Google-Attributes: gid1164f8,public From: patchkov@acs1.acs.ucalgary.ca (Serguei Patchkovskii) Subject: Re: Help required: INTERRUPTED SYSTEM CALL Date: 1999/12/17 Message-ID: <83dp3a$h0m$1@nserve1.acs.ucalgary.ca>#1/1 X-Deja-AN: 561999451 References: <83di8a$9et$1@news5.jaring.my> X-Complaints-To: news@ucalgary.ca X-Trace: nserve1.acs.ucalgary.ca 945448874 17430 136.159.34.221 (17 Dec 1999 16:41:14 GMT) Organization: University of Calgary NNTP-Posting-Date: 17 Dec 1999 16:41:14 GMT Newsgroups: comp.sys.dec Wendy Lim (wendyl@pd.jaring.my) wrote: : This application runs on at three different environments which are : identical in terms of the hard : disk space, memory etc. Only on the production environment does it : encounter the above error : after a specific event (the event is associated with day end processing : jobs on our system). The : " Interrupted system call error" causes the application : to exit. I put in debug statements and ran a test on the : production systems and found the following results: Any correctly written program must be prepared to receive EINTR from msgrcv(), as well as from most blocking system calls, and to deal with it (usually simply by re-issuing msgrcv()). EINTR simply indicates that a non-ignored signal (see "man 4 signal") arrived while msgrcv() was waiting for a message. This behavior is clearly documented in the msgrcv manual page. You can look up the rationaly for this behavior in any decent Unix programming text. /Serge.P -- home page: http://www.cobalt.chem.ucalgary.ca/ps/