projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tests: Introduce test_ust_constructor
[lttng-tools.git]
/
tests
/
utils
/
utils.sh
diff --git
a/tests/utils/utils.sh
b/tests/utils/utils.sh
index 9ffcc6ff29e072c03bf1571ec10036126f6f9c42..3e1a81ce5f03e3c7a8aa405b7e2ce29ead2abfb3 100644
(file)
--- a/
tests/utils/utils.sh
+++ b/
tests/utils/utils.sh
@@
-148,7
+148,7
@@
function lttng_pgrep ()
while IFS= read -r pid ; do
# /proc/pid/cmdline is null separated.
while IFS= read -r pid ; do
# /proc/pid/cmdline is null separated.
- if full_command_no_argument=$(
tr '\0' '\n' < /proc/"$pid"/cmdline
2>/dev/null | head -n1); then
+ if full_command_no_argument=$(
(tr '\0' '\n' < /proc/"$pid"/cmdline)
2>/dev/null | head -n1); then
command_basename=$(basename "$full_command_no_argument")
if grep -q "$pattern" <<< "$command_basename"; then
echo "$pid"
command_basename=$(basename "$full_command_no_argument")
if grep -q "$pattern" <<< "$command_basename"; then
echo "$pid"
This page took
0.023861 seconds
and
4
git commands to generate.