* shm.cc (shmat): If shmid is unknown, call a special variation
of shmget to retrieve the shared memory segment from Cygserver instead of failing immediately. * include/cygwin/ipc.h (IPC_KEY_IS_SHMID): New internal flag for shmget when called from shmat.
This commit is contained in:
@ -32,6 +32,9 @@ struct ipc_perm
|
||||
|
||||
/* Mode bits:
|
||||
*/
|
||||
#ifdef _KERNEL
|
||||
#define IPC_KEY_IS_SHMID 0x0100 /* Used in shmget when called from shmat. */
|
||||
#endif
|
||||
#define IPC_CREAT 0x0200 /* Create entry if key does not exist. */
|
||||
#define IPC_EXCL 0x0400 /* Fail if key exists. */
|
||||
#define IPC_NOWAIT 0x0800 /* Error if request must wait. */
|
||||
|
Reference in New Issue
Block a user