Exemplo n.º 1
0
Arquivo: remote.c Projeto: icetee/pv
/*
 * 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);
}
Exemplo n.º 2
0
/*
 * 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);
}