Skip to content

Commit 5883563

Browse files
committed
Re-add mention of FAQ's for shared memory/ipc errors.
1 parent 944dec1 commit 5883563

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
static int UsePrivateMemory = 0;
4747

4848
static void IpcMemoryDetach(int status, char *shmaddr);
49+
static void IpcConfigTip(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
return IpcMemCreationFailed;
538542
}
539543

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

712716
#endif /* HAS_TEST_AND_SET */
713717

714-
#ifdef NOT_USED
715718
static void
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 by an improper\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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy