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 *
4646static int UsePrivateMemory = 0 ;
4747
4848static void IpcMemoryDetach (int status ,char * shmaddr );
49+ static void IpcConfigTip (void );
4950
5051/* ----------------------------------------------------------------
5152 *exit() handling stuff
@@ -329,6 +330,7 @@ IpcSemaphoreCreate(IpcSemaphoreKey semKey,
329330EPRINTF ("IpcSemaphoreCreate: semget failed (%s) "
330331"key=%d, num=%d, permission=%o" ,
331332strerror (errno ),semKey ,semNum ,permission );
333+ IpcConfigTip ();
332334return (-1 );
333335}
334336for (i = 0 ;i < semNum ;i ++ )
@@ -340,6 +342,7 @@ IpcSemaphoreCreate(IpcSemaphoreKey semKey,
340342EPRINTF ("IpcSemaphoreCreate: semctl failed (%s) id=%d" ,
341343strerror (errno ),semId );
342344semctl (semId ,0 ,IPC_RMID ,semun );
345+ IpcConfigTip ();
343346return (-1 );
344347}
345348
@@ -534,6 +537,7 @@ IpcMemoryCreate(IpcMemoryKey memKey, uint32 size, int permission)
534537EPRINTF ("IpcMemoryCreate: shmget failed (%s) "
535538"key=%d, size=%d, permission=%o" ,
536539strerror (errno ),memKey ,size ,permission );
540+ IpcConfigTip ();
537541return IpcMemCreationFailed ;
538542}
539543
@@ -711,13 +715,12 @@ LockIsFree(int lockid)
711715
712716#endif /* HAS_TEST_AND_SET */
713717
714- #ifdef NOT_USED
715718static void
716719IpcConfigTip (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 byan improper\n" );
719722fprintf (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