[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Must i worry about errno == -303 EMIG_BAD_ID ?



Hi,

> > does errno -303 announce bigger trouble ?
> Probably yes: the query/reply IPC ping-pong got disturbed somehow.

Here is a minimal C example:
--------------------------------------------------------------------
#include <unistd.h>
#include <stdio.h>
#include <errno.h>

int main() 
{ 
  int ret;

  printf("Hello world\n");
  ret = fsync(1);
  fprintf(stderr, "fsync(1)= %d , errno = %d\n", ret, errno);
}
--------------------------------------------------------------------

Test runs
  $ ./a.out | cat >/dev/null
  fsync(1)= -1 , errno = -303
  $ ./a.out
  Hello world
  fsync(1)= 0 , errno = 0


Have a nice day :)

Thomas


Reply to: