mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
debugger.mk: Get pid from pidof(8) instead of ps(1)
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
17d089850e
commit
70454e8c88
1 changed files with 3 additions and 2 deletions
|
|
@ -13,7 +13,7 @@ ifeq ($(CORE_DUMPER),)
|
|||
CORE_DUMPER = $(EXE_PATH)
|
||||
endif
|
||||
|
||||
PID = $(shell ps aux | $(SED) "/$(notdir $(EXE_PATH))\( \|$$\)/ !d; /sed/ d; /defunct/ d" | awk '{print $$2}')
|
||||
PID = $(shell pidof $(EXE_PATH))
|
||||
|
||||
all:
|
||||
|
||||
|
|
@ -74,4 +74,5 @@ coreclean: centralcore-clean
|
|||
|
||||
centralcore-clean:
|
||||
rm -f /var/cores/core* /var/cores/vgcore* || exit 0
|
||||
|
||||
echo-pid:
|
||||
@echo PID = $(PID)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue