From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,e6c6ca855eeb9708,start X-Google-Attributes: gidfee84,public From: Laurent Deniel Subject: strange semop failure Date: 1996/09/20 Message-ID: <3242EF41.1CD3C06C@worldnet.fr>#1/1 X-Deja-AN: 184238313 cc: Jean Dominique DARJO , content-type: text/plain; charset=us-ascii organization: SCT / Worldnet - Internet Provider & Information Exchange - Paris, France mime-version: 1.0 newsgroups: comp.unix.osf.osf1 x-mailer: Mozilla 3.0 (X11; I; Linux 2.0.0 i586) Twice a year, I had a problem with a semop operation on DU 3.2. A program which usually works fine, fails on a blocking call to the semop system call (the semop arguments are correct, and the system call is restarted at reception of a signal (EINTR)). When these strange errors occur, the errno value was incorrect (non documented in the manual page), any idea ? Thanks, Laurent. PS: In the following example, a return value different from 0 is considered as an error, can the semop system call return a value greater than 0 on successful completion ? do { sem_result = semop( ... ); } while (sem_result < 0 && errno == EINTR); if ( sem_result != 0 ) { if ( errno == EAGAIN ) { ... } else { perror("semop"); ... } } ... -- Laurent DENIEL | E-mail: deniel@worldnet.fr Paris, FRANCE | WWW : http://www.worldnet.net/~deniel