mirror of
https://github.com/garywill/linux-router.git
synced 2026-11-01 13:20:39 +00:00
get_pid_by_dbus_name() : fix stderr show
This commit is contained in:
1 parent
c376609896
commit
fbad56f05c
1 file changed
+1
-1
@@ -862,7 +862,7 @@ get_pid_by_dbus_name() {
|
|||||||
|
|
||||||
which dbus-send >/dev/null 2>&1 || return 1
|
which dbus-send >/dev/null 2>&1 || return 1
|
||||||
|
|
||||||
pid="$( dbus-send --system --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.GetConnectionUnixProcessID string:$DBUS_NAME | grep " uint32 " | awk '{print $2}' )" 2>/dev/null
|
pid="$( dbus-send --system --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.GetConnectionUnixProcessID string:$DBUS_NAME 2>/dev/null | grep " uint32 " | awk '{print $2}' )"
|
||||||
r=$?
|
r=$?
|
||||||
|
|
||||||
echo "$pid"
|
echo "$pid"
|
||||||
|
|||||||
Reference in new issue
Block a user