do_kill(): Also skip gdbserver from being killed

To improve debug possibilities at shutdown, keep gdbserver running even
during shutdown.

Note: The gdbserver service runlevels must be sth like [123456789] for
      this to work in the first place.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2018-01-18 18:21:37 +01:00
parent fd7a6c5020
commit 92b1d882e5
+3 -1
View File
@@ -133,7 +133,9 @@ void do_kill(int signo)
continue;
if (fgets(file, sizeof(file), fp)) {
if (file[0] != '@')
if (strstr(file, "gdbserver"))
_d("Skipping %s ...", file);
else if (file[0] != '@')
kill(pid, signo);
else
_d("Skipping %s ...", &file[1]);