/* * Return a message queue ID that is unique to the current user and the * given process ID, or -1 on error. */ static int remote__msgget(void) { /* Catch SIGSYS in case msgget() raises it, so we get ENOSYS */ signal(SIGSYS, SIG_IGN); return msgget(remote__genkey(), IPC_CREAT | 0600); }
/* * Return a message queue ID that is unique to the current user and the * given process ID, or -1 on error. */ static int remote__msgget(opts_t opts) { return msgget(remote__genkey(opts), IPC_CREAT | 0600); }