diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2013-05-03 21:08:42 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2013-05-03 21:08:42 +0400 |
commit | 1058def8e7827e56ce4a70afb4aeacb5dc44148f (patch) | |
tree | 4495d23e7b54ab5700e3839081e797c1eafe0db9 /setup/Linux/oss/scripts/showprocs.sh | |
download | oss4-upstream.tar.gz |
Imported Upstream version 4.2-build2006upstream/4.2-build2006upstream
Diffstat (limited to 'setup/Linux/oss/scripts/showprocs.sh')
-rwxr-xr-x | setup/Linux/oss/scripts/showprocs.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/setup/Linux/oss/scripts/showprocs.sh b/setup/Linux/oss/scripts/showprocs.sh new file mode 100755 index 0000000..827bb33 --- /dev/null +++ b/setup/Linux/oss/scripts/showprocs.sh @@ -0,0 +1,28 @@ +#!/bin/sh +PROCS="`fuser /dev/mixer* /dev/dsp* /dev/audio* /dev/sequencer /dev/music /dev/midi*|sed 's/.* //'|sort|uniq`" + +if test "$PROCS " = " " +then + exit 0 +fi + +if test "$1 " != "-q " +then +echo $PROCS +echo +echo "NOTICE!" +echo "=======" +echo +echo There are some programs still using OSS devices. You may need to stop them +echo manually: +echo +fi + +for pid in $PROCS +do + ps ax|grep "^ *$pid " +done + +echo + +exit 0 |