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
47a86fa0
Commit
47a86fa0
authored
19 years ago
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add code comment about Linux stack randomization and shared memory.
parent
802c7aa3
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
src/backend/postmaster/postmaster.c
src/backend/postmaster/postmaster.c
+13
-2
No files found.
src/backend/postmaster/postmaster.c
View file @
47a86fa0
...
...
@@ -37,7 +37,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.48
0 2006/02/01 00:31:59
momjian Exp $
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.48
1 2006/02/01 16:00:06
momjian Exp $
*
* NOTES
*
...
...
@@ -3336,7 +3336,18 @@ SubPostmasterMain(int argc, char *argv[])
/* Need a PGPROC to run CreateSharedMemoryAndSemaphores */
InitProcess
();
/* Attach process to shared data structures */
/*
* Attach process to shared data structures. If testing
* EXEC_BACKEND on Linux, you must run this as root
* before starting the postmaster:
*
* echo 0 >/proc/sys/kernel/randomize_va_space
*
* This prevents a randomized stack base address that causes
* child shared memory to be at a different address than
* the parent, making it impossible to attached to shared
* memory. Return the value to '1' when finished.
*/
CreateSharedMemoryAndSemaphores
(
false
,
0
);
/* And run the backend */
...
...
This diff is collapsed.
Click to expand it.
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