* sem.cc: Ditto.
* shm.cc: Ditto.
+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.
/* 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.
{
syscall_printf ("-1 [%d] = msgctl ()", request.error_code ());
set_errno (request.error_code ());
- if (request.error_code () == ENOSYS)
- raise (SIGSYS);
__leave;
}
return request.retval ();
{
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 ();
{
syscall_printf ("-1 [%d] = msgrcv ()", request.error_code ());
set_errno (request.error_code ());
- if (request.error_code () == ENOSYS)
- raise (SIGSYS);
__leave;
}
return request.rcvval ();
{
syscall_printf ("-1 [%d] = msgsnd ()", request.error_code ());
set_errno (request.error_code ());
- if (request.error_code () == ENOSYS)
- raise (SIGSYS);
__leave;
}
return request.retval ();
- 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
---------
/* 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.
{
syscall_printf ("-1 [%d] = semctl ()", request.error_code ());
set_errno (request.error_code ());
- if (request.error_code () == ENOSYS)
- raise (SIGSYS);
__leave;
}
return request.retval ();
{
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 ();
{
syscall_printf ("-1 [%d] = semop ()", request.error_code ());
set_errno (request.error_code ());
- if (request.error_code () == ENOSYS)
- raise (SIGSYS);
__leave;
}
return request.retval ();
/* 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.
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;
{
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)
{
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;
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 */