From 0abee1c6eb6d86270098a74bbce330cb3d7ac4f2 Mon Sep 17 00:00:00 2001 From: Olaf Seibert Date: Mon, 23 Jan 2017 20:37:38 +0100 Subject: [PATCH] Extra safety return. --- src/dpni20.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/dpni20.c b/src/dpni20.c index ab5759b..57c1d5f 100644 --- a/src/dpni20.c +++ b/src/dpni20.c @@ -440,6 +440,8 @@ main(int argc, char **argv) #endif progname = progname_r; /* Reset progname to indicate identity */ ethtoten(dpni); /* Child process handles input from net */ + + return 1; /* Do not fall through here, ever */ } progname = progname_w; /* Reset progname to indicate identity */ tentoeth(dpni); /* Parent process handles output to net */ @@ -1363,6 +1365,7 @@ void tentoeth(struct dpni20_s *dpni) break; case DPNI_QUIT: + /* Attempt to quit the device process gracefully */ if (DBGFLG) dbprint("QUIT"); return;