Module: kamailio
Branch: master
Commit: 626c0dee863fa517e473148ca8010d737a8f7ffe
URL:
https://github.com/kamailio/kamailio/commit/626c0dee863fa517e473148ca8010d7…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-07T19:28:29+02:00
kamctl: skip tracing kamctl itself in pstrap
---
Modified: utils/kamctl/kamctl
---
Diff:
https://github.com/kamailio/kamailio/commit/626c0dee863fa517e473148ca8010d7…
Patch:
https://github.com/kamailio/kamailio/commit/626c0dee863fa517e473148ca8010d7…
---
diff --git a/utils/kamctl/kamctl b/utils/kamctl/kamctl
index 1f3b1f38a2..5be26efbc4 100755
--- a/utils/kamctl/kamctl
+++ b/utils/kamctl/kamctl
@@ -2947,11 +2947,11 @@ kamailio_pstrap() {
DATE=`/bin/date +%Y%m%d_%H%M%S`
LOG_FILE=/tmp/gdb_kamailio_${DATE}.txt
minfo "Trap file: $LOG_FILE"
- ps axw | grep kamailio | grep -v grep | sort > $LOG_FILE
+ ps axw | grep kamailio | grep -v grep | grep -v kamctl | sort > $LOG_FILE
echo "" >> $LOG_FILE
echo "" >> $LOG_FILE
echo -n "Trapping Kamailio with gdb: "
- PID_TIMESTAMP_VECTOR=`ps axw | grep kamailio | grep -v grep | sort | awk '{print
$1}'`
+ PID_TIMESTAMP_VECTOR=`ps axw | grep kamailio | grep -v grep | grep -v kamctl | sort |
awk '{print $1}'`
for pid in $PID_TIMESTAMP_VECTOR
do
echo -n "."