projects
/
ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix build and out of tree build
[ust.git]
/
usttrace
diff --git
a/usttrace
b/usttrace
index fe8a5cd8f8c47f80a53a72164c1ac8852d20a1a3..52c378dfbd12041636f1630e7b82d49ee51bcbb6 100755
(executable)
--- a/
usttrace
+++ b/
usttrace
@@
-78,9
+78,9
@@
SOCKPATH="/tmp/ust-sock-$$"
if [ "$arg_syswide_daemon" != "1" ];
then
pidfilepath="/tmp/usttrace-$USER-$(date +%Y%m%d%H%M%S%N)-ustd-pid"
if [ "$arg_syswide_daemon" != "1" ];
then
pidfilepath="/tmp/usttrace-$USER-$(date +%Y%m%d%H%M%S%N)-ustd-pid"
-
+ mkfifo -m 0600 "$pidfilepath"
# Start daemon
# Start daemon
- $USTD -
d -
-pidfile "$pidfilepath" -s "$SOCKPATH" -o "$OUTDIR" >"$OUTDIR/ustd.log" 2>&1 &
+ $USTD --pidfile "$pidfilepath" -s "$SOCKPATH" -o "$OUTDIR" >"$OUTDIR/ustd.log" 2>&1 &
USTDPID="$(<$pidfilepath)"
export UST_DAEMON_SOCKET="$SOCKPATH"
fi
USTDPID="$(<$pidfilepath)"
export UST_DAEMON_SOCKET="$SOCKPATH"
fi
@@
-129,7
+129,7
@@
then
kill -SIGTERM "$USTDPID"
echo "Waiting for ustd to shutdown..."
kill -SIGTERM "$USTDPID"
echo "Waiting for ustd to shutdown..."
- wait "$
USTDPID
"
+ wait "$
(USTDPID)
"
rm "$pidfilepath"
fi
rm "$pidfilepath"
fi
This page took
0.022457 seconds
and
4
git commands to generate.