* msg.cc: Throughout, drop raising SIGSYS if cygserver is not running.

* sem.cc: Ditto.
	* shm.cc: Ditto.
This commit is contained in:
Corinna Vinschen 2015-03-03 17:09:30 +00:00
parent 73c0c53cf4
commit 8ac0306085
5 changed files with 13 additions and 26 deletions

View File

@ -1,3 +1,9 @@
2015-03-03 Corinna Vinschen <corinna@vinschen.de>
* msg.cc: Throughout, drop raising SIGSYS if cygserver is not running.
* sem.cc: Ditto.
* shm.cc: Ditto.
2015-03-03 Corinna Vinschen <corinna@vinschen.de>
* common.din (issetugid): Export.

View File

@ -1,6 +1,6 @@
/* msg.cc: XSI IPC interface for Cygwin.
Copyright 2002, 2003, 2004, 2005, 2008, 2009, 2014 Red Hat, Inc.
Copyright 2002, 2003, 2004, 2005, 2008, 2009, 2014, 2015 Red Hat, Inc.
This file is part of Cygwin.
@ -116,8 +116,6 @@ msgctl (int msqid, int cmd, struct msqid_ds *buf)
{
syscall_printf ("-1 [%d] = msgctl ()", request.error_code ());
set_errno (request.error_code ());
if (request.error_code () == ENOSYS)
raise (SIGSYS);
__leave;
}
return request.retval ();
@ -136,8 +134,6 @@ msgget (key_t key, int msgflg)
{
syscall_printf ("-1 [%d] = msgget ()", request.error_code ());
set_errno (request.error_code ());
if (request.error_code () == ENOSYS)
raise (SIGSYS);
return -1;
}
return request.retval ();
@ -156,8 +152,6 @@ msgrcv (int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg)
{
syscall_printf ("-1 [%d] = msgrcv ()", request.error_code ());
set_errno (request.error_code ());
if (request.error_code () == ENOSYS)
raise (SIGSYS);
__leave;
}
return request.rcvval ();
@ -179,8 +173,6 @@ msgsnd (int msqid, const void *msgp, size_t msgsz, int msgflg)
{
syscall_printf ("-1 [%d] = msgsnd ()", request.error_code ());
set_errno (request.error_code ());
if (request.error_code () == ENOSYS)
raise (SIGSYS);
__leave;
}
return request.retval ();

View File

@ -33,6 +33,9 @@ What changed:
- Change getfacl long options from --all to --access and from --dir to
--default, along the lines of the Linux getfacl tool.
- Don't raise a SIGSYS signal in the XSI IPC functions if cygserver is not
running. Just return -1 with errno set to ENOSYS.
Bug Fixes
---------

View File

@ -1,6 +1,6 @@
/* sem.cc: XSI IPC interface for Cygwin.
Copyright 2002, 2003, 2004, 2005, 2008, 2009, 2012, 2014 Red Hat, Inc.
Copyright 2002, 2003, 2004, 2005, 2008, 2009, 2012, 2014, 2015 Red Hat, Inc.
This file is part of Cygwin.
@ -92,8 +92,6 @@ semctl (int semid, int semnum, int cmd, ...)
{
syscall_printf ("-1 [%d] = semctl ()", request.error_code ());
set_errno (request.error_code ());
if (request.error_code () == ENOSYS)
raise (SIGSYS);
__leave;
}
return request.retval ();
@ -113,8 +111,6 @@ semget (key_t key, int nsems, int semflg)
{
syscall_printf ("-1 [%d] = semget ()", request.error_code ());
set_errno (request.error_code ());
if (request.error_code () == ENOSYS)
raise (SIGSYS);
return -1;
}
return request.retval ();
@ -132,8 +128,6 @@ semop (int semid, struct sembuf *sops, size_t nsops)
{
syscall_printf ("-1 [%d] = semop ()", request.error_code ());
set_errno (request.error_code ());
if (request.error_code () == ENOSYS)
raise (SIGSYS);
__leave;
}
return request.retval ();

View File

@ -1,7 +1,7 @@
/* shm.cc: XSI IPC interface for Cygwin.
Copyright 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009, 2012, 2013, 2014
Red Hat, Inc.
Copyright 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009, 2012, 2013, 2014,
2015 Red Hat, Inc.
This file is part of Cygwin.
@ -242,8 +242,6 @@ shmat (int shmid, const void *shmaddr, int shmflg)
delete sph_entry;
set_errno (request.error_code ());
--ssh_entry->ref_count;
if (request.error_code () == ENOSYS)
raise (SIGSYS);
return (void *) -1;
}
sph_entry->ptr = ptr;
@ -267,8 +265,6 @@ shmctl (int shmid, int cmd, struct shmid_ds *buf)
{
syscall_printf ("-1 [%d] = shmctl ()", request.error_code ());
set_errno (request.error_code ());
if (request.error_code () == ENOSYS)
raise (SIGSYS);
__leave;
}
if (cmd == IPC_RMID)
@ -310,8 +306,6 @@ shmdt (const void *shmaddr)
{
syscall_printf ("-1 [%d] = shmdt ()", request.error_code ());
set_errno (request.error_code ());
if (request.error_code () == ENOSYS)
raise (SIGSYS);
return -1;
}
shm_attached_list *sph_entry, *sph_next_entry;
@ -359,8 +353,6 @@ shmget (key_t key, size_t size, int shmflg)
syscall_printf ("-1 [%d] = shmget ()", request.error_code ());
delete ssh_new_entry;
set_errno (request.error_code ());
if (request.error_code () == ENOSYS)
raise (SIGSYS);
return -1;
}
int shmid = request.retval (); /* Shared mem ID */