mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
print out the error string when failing to get shared memory
This commit is contained in:
parent
2e8f780e03
commit
af663488c8
1 changed files with 2 additions and 1 deletions
|
@ -344,7 +344,8 @@ ResetSharedFrameBuffers (void)
|
|||
key = random ();
|
||||
x_shminfo[frm].shmid = shmget ((key_t) key, size, IPC_CREAT | 0777);
|
||||
if (x_shminfo[frm].shmid == -1)
|
||||
Sys_Error ("VID: Could not get any shared memory\n");
|
||||
Sys_Error ("VID: Could not get any shared memory (%s)\n",
|
||||
strerror (errno));
|
||||
|
||||
// attach to the shared memory segment
|
||||
x_shminfo[frm].shmaddr = (void *) shmat (x_shminfo[frm].shmid, 0, 0);
|
||||
|
|
Loading…
Reference in a new issue