Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
58835632
Commit
58835632
authored
Oct 10, 1999
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Re-add mention of FAQ's for shared memory/ipc errors.
parent
944dec1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
src/backend/storage/ipc/ipc.c
src/backend/storage/ipc/ipc.c
+9
-6
No files found.
src/backend/storage/ipc/ipc.c
View file @
58835632
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.
39 1999/10/06 21:58:06 vadim
Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.
40 1999/10/10 16:53:51 momjian
Exp $
*
* NOTES
*
...
...
@@ -46,6 +46,7 @@
static
int
UsePrivateMemory
=
0
;
static
void
IpcMemoryDetach
(
int
status
,
char
*
shmaddr
);
static
void
IpcConfigTip
(
void
);
/* ----------------------------------------------------------------
* exit() handling stuff
...
...
@@ -329,6 +330,7 @@ IpcSemaphoreCreate(IpcSemaphoreKey semKey,
EPRINTF
(
"IpcSemaphoreCreate: semget failed (%s) "
"key=%d, num=%d, permission=%o"
,
strerror
(
errno
),
semKey
,
semNum
,
permission
);
IpcConfigTip
();
return
(
-
1
);
}
for
(
i
=
0
;
i
<
semNum
;
i
++
)
...
...
@@ -340,6 +342,7 @@ IpcSemaphoreCreate(IpcSemaphoreKey semKey,
EPRINTF
(
"IpcSemaphoreCreate: semctl failed (%s) id=%d"
,
strerror
(
errno
),
semId
);
semctl
(
semId
,
0
,
IPC_RMID
,
semun
);
IpcConfigTip
();
return
(
-
1
);
}
...
...
@@ -534,6 +537,7 @@ IpcMemoryCreate(IpcMemoryKey memKey, uint32 size, int permission)
EPRINTF
(
"IpcMemoryCreate: shmget failed (%s) "
"key=%d, size=%d, permission=%o"
,
strerror
(
errno
),
memKey
,
size
,
permission
);
IpcConfigTip
();
return
IpcMemCreationFailed
;
}
...
...
@@ -711,13 +715,12 @@ LockIsFree(int lockid)
#endif
/* HAS_TEST_AND_SET */
#ifdef NOT_USED
static
void
IpcConfigTip
(
void
)
{
fprintf
(
stderr
,
"This type of error is usually caused by improper
\n
"
);
fprintf
(
stderr
,
"This type of error is usually caused by
an
improper
\n
"
);
fprintf
(
stderr
,
"shared memory or System V IPC semaphore configuration.
\n
"
);
fprintf
(
stderr
,
"See the FAQ for more detailed information
\n
"
);
fprintf
(
stderr
,
"For more information, see the FAQ and platform-specific
\n
"
);
fprintf
(
stderr
,
"FAQ's in the source directory pgsql/doc or on our
\n
"
);
fprintf
(
stderr
,
"web site at http://www.postgresql.org.
\n
"
);
}
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment