aboutsummaryrefslogtreecommitdiff
path: root/malloc
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-09-20 19:06:30 +0000
committerUlrich Drepper <drepper@redhat.com>2001-09-20 19:06:30 +0000
commitc788cd706d013c449c8415f34a16ca8024ad250d (patch)
tree6f5aecd6bc63cfa3c6e1e81119104400b737dc0a /malloc
parent8bbbd5d09c47b640abacac81a5ce824f4ce2a921 (diff)
downloadglibc-c788cd706d013c449c8415f34a16ca8024ad250d.tar
glibc-c788cd706d013c449c8415f34a16ca8024ad250d.tar.gz
glibc-c788cd706d013c449c8415f34a16ca8024ad250d.tar.bz2
glibc-c788cd706d013c449c8415f34a16ca8024ad250d.zip
Make -n option actually do something.
Diffstat (limited to 'malloc')
-rwxr-xr-xmalloc/memusage.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/malloc/memusage.sh b/malloc/memusage.sh
index e9025cb75a..e0d2fccc0f 100755
--- a/malloc/memusage.sh
+++ b/malloc/memusage.sh
@@ -219,6 +219,11 @@ if test -n "$datafile"; then
add_env="$add_env MEMUSAGE_OUTPUT=$datafile"
fi
+# Set program name.
+if test -n "$progname"; then
+ add_env="$add_env MEMUSAGE_PROG_NAME=$progname"
+fi
+
# Set buffer size.
if test -n "$buffer"; then
add_env="$add_env MEMUSAGE_BUFFER_SIZE=$buffer"