Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
d2331b4e
Commit
d2331b4e
authored
24 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
More cleanup, again not sure it works.
parent
6996a772
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/bin/ipcclean/ipcclean.sh
+3
-4
3 additions, 4 deletions
src/bin/ipcclean/ipcclean.sh
with
3 additions
and
4 deletions
src/bin/ipcclean/ipcclean.sh
+
3
−
4
View file @
d2331b4e
#!/bin/sh
#!/bin/sh
#
#
# $Header: /cvsroot/pgsql/src/bin/ipcclean/Attic/ipcclean.sh,v 1.
8
2001/02/10 0
5:55
:1
7
momjian Exp $
# $Header: /cvsroot/pgsql/src/bin/ipcclean/Attic/ipcclean.sh,v 1.
9
2001/02/10 0
6:12
:1
5
momjian Exp $
#
#
CMDNAME
=
`
basename
$0
`
CMDNAME
=
`
basename
$0
`
...
@@ -39,7 +39,6 @@ EffectiveUser=`id -n -u 2>/dev/null || whoami 2>/dev/null`
...
@@ -39,7 +39,6 @@ EffectiveUser=`id -n -u 2>/dev/null || whoami 2>/dev/null`
#
#
if
[
`
uname
`
=
'Linux'
]
;
then
if
[
`
uname
`
=
'Linux'
]
;
then
ipcs_id
=
ipcs_id
=
ipcs_cpid
=
ipcs_lpid
=
ipcs_lpid
=
did_anything
=
did_anything
=
...
@@ -49,7 +48,8 @@ if [ `uname` = 'Linux' ]; then
...
@@ -49,7 +48,8 @@ if [ `uname` = 'Linux' ]; then
fi
fi
# shared memory
# shared memory
for
val
in
`
ipcs
-m
-p
|
grep
'^[0-9]'
|
awk
'{printf "%s %s\n", $1, $3, $4}'
`
;
do
for
val
in
`
ipcs
-m
-p
|
grep
'^[0-9]'
|
awk
'{printf "%s %s\n", $1, $3, $4}'
`
do
if
[
-z
"
$ipcs_id
"
]
;
then
if
[
-z
"
$ipcs_id
"
]
;
then
ipcs_id
=
$val
ipcs_id
=
$val
# Note: We can do -n here, because we know the platform.
# Note: We can do -n here, because we know the platform.
...
@@ -75,7 +75,6 @@ if [ `uname` = 'Linux' ]; then
...
@@ -75,7 +75,6 @@ if [ `uname` = 'Linux' ]; then
fi
fi
fi
fi
ipcs_id
=
ipcs_id
=
ipcs_cpid
=
ipcs_lpid
=
ipcs_lpid
=
done
done
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment