From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,dc71e1f90e798fb9,start X-Google-Attributes: gid1164f8,public From: "Wendy Lim" Subject: Help required: INTERRUPTED SYSTEM CALL Date: 1999/12/17 Message-ID: <83di8a$9et$1@news5.jaring.my>#1/1 X-Deja-AN: 561961020 Organization: Unconfigured X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Newsgroups: comp.sys.dec hi All We have a custom built application which runs on Digital Unix 4.0D. This application uses msgsnd and msgrcv to process messages sent to/from a user defined queue. 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: 1) The msgrcv() function returns -1 2) A perror() returns INTERRUPTED SYSTEM CALL 3) A call to msgctl()(this gives info on the message queue which is being called) after the msgrcv() -1 return gives the following results: msgctl.msg buffer = NULL msgctl.msg buffer ltype = -7152 msgctl.msg last process send =0 msgctl.msg last process receive =0 I suspect the msgrcv function is returning -1 due to a signal interrupt (errno=EINTR) but if my own process is not sending a signal to the queue what is? I can tell that my own process has not sent a signal from the msgctl's last process send and last process receive fields. Running the same application on my dev environment and sending a deliberate error message populates these two fields with the application pid. How do i find out what an ltype of -7152 signifies.Our ltypes are positive when we send to this queue. Could it be a kernel setting? This is a strange error as the same exe runs perfectly on all other environments. Thanks Wendy Lim