~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to pvm3/lib/ipcfree

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
#
3
 
# $Id: ipcfree,v 1.1 1996/09/23 21:15:42 pvmsrc Exp $
 
3
# $Id: ipcfree,v 1.2 2002/10/14 14:21:46 chanceli Exp $
4
4
#
5
5
# ipcfree
6
6
#
7
 
# Delete any shared memory or semaphores lying around after a PVM
 
7
# Delete any shared memory, semaphores and message queues lying around after 
 
8
# a PVM
8
9
# program bombs out or is killed ungracefully.
9
10
# Run it if you're getting error messages like:
10
11
#   semget: ... No space left on device
11
12
#   shmget: ... No space left on device
12
13
# when using one of the *MP PVM architectures.
 
14
# Or when using the pvm_shmd shared memory daemon.
13
15
#
14
16
 
15
17
if [ "$USER" = "" ]; then
16
18
        USER=` whoami `
17
19
fi
18
20
 
19
 
m=` ipcs | awk '$1~/^[ms]$/ && $5~/'$USER'/ {print "-"$1, $2}' `
 
21
m=` ipcs | awk '$1~/^[msq]$/ && $5~/'$USER'/ {print "-"$1, $2}' `
20
22
 
21
23
case "$m" in
22
24
?*) echo "deleting $m"