Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5883563

Browse files
committed
Re-add mention of FAQ's for shared memory/ipc errors.
1 parent944dec1 commit5883563

File tree

1 file changed

+9
-6
lines changed
  • src/backend/storage/ipc

1 file changed

+9
-6
lines changed

‎src/backend/storage/ipc/ipc.c

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.39 1999/10/06 21:58:06 vadim Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.40 1999/10/10 16:53:51 momjian Exp $
1111
*
1212
* NOTES
1313
*
@@ -46,6 +46,7 @@
4646
staticintUsePrivateMemory=0;
4747

4848
staticvoidIpcMemoryDetach(intstatus,char*shmaddr);
49+
staticvoidIpcConfigTip(void);
4950

5051
/* ----------------------------------------------------------------
5152
*exit() handling stuff
@@ -329,6 +330,7 @@ IpcSemaphoreCreate(IpcSemaphoreKey semKey,
329330
EPRINTF("IpcSemaphoreCreate: semget failed (%s) "
330331
"key=%d, num=%d, permission=%o",
331332
strerror(errno),semKey,semNum,permission);
333+
IpcConfigTip();
332334
return(-1);
333335
}
334336
for (i=0;i<semNum;i++)
@@ -340,6 +342,7 @@ IpcSemaphoreCreate(IpcSemaphoreKey semKey,
340342
EPRINTF("IpcSemaphoreCreate: semctl failed (%s) id=%d",
341343
strerror(errno),semId);
342344
semctl(semId,0,IPC_RMID,semun);
345+
IpcConfigTip();
343346
return(-1);
344347
}
345348

@@ -534,6 +537,7 @@ IpcMemoryCreate(IpcMemoryKey memKey, uint32 size, int permission)
534537
EPRINTF("IpcMemoryCreate: shmget failed (%s) "
535538
"key=%d, size=%d, permission=%o",
536539
strerror(errno),memKey,size,permission);
540+
IpcConfigTip();
537541
returnIpcMemCreationFailed;
538542
}
539543

@@ -711,13 +715,12 @@ LockIsFree(int lockid)
711715

712716
#endif/* HAS_TEST_AND_SET */
713717

714-
#ifdefNOT_USED
715718
staticvoid
716719
IpcConfigTip(void)
717720
{
718-
fprintf(stderr,"This type of error is usually caused by improper\n");
721+
fprintf(stderr,"This type of error is usually caused byanimproper\n");
719722
fprintf(stderr,"shared memory or System V IPC semaphore configuration.\n");
720-
fprintf(stderr,"See the FAQ for more detailed information\n");
723+
fprintf(stderr,"For more information, see the FAQ and platform-specific\n");
724+
fprintf(stderr,"FAQ's in the source directory pgsql/doc or on our\n");
725+
fprintf(stderr,"web site at http://www.postgresql.org.\n");
721726
}
722-
723-
#endif

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp