diff options
Diffstat (limited to 'tools/frrinit.sh.in')
-rw-r--r-- | tools/frrinit.sh.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/frrinit.sh.in b/tools/frrinit.sh.in index e41f2706e..df5f0853d 100644 --- a/tools/frrinit.sh.in +++ b/tools/frrinit.sh.in @@ -77,7 +77,7 @@ reload) # systemd doesn't set WATCHDOG_USEC for reload commands. watchfrr_pidfile="$V_PATH/watchfrr.pid" watchfrr_pid="`cat \"$watchfrr_pidfile\"`" - watchfrr_cmdline="`strings /proc/$watchfrr_pid/cmdline`" + watchfrr_cmdline="`tr '\0' '\n' < /proc/$watchfrr_pid/cmdline`" if [ -d "/proc/$watchfrr_pid" ]; then wdt="`tr '\0' '\n' < /proc/$watchfrr_pid/environ | grep '^WATCHDOG_USEC='`" wdt="${wdt#WATCHDOG_USEC=}" |