diff --git a/src/ndhc.c b/src/ndhc.c index 860f465..0f32334 100644 --- a/src/ndhc.c +++ b/src/ndhc.c @@ -641,6 +641,9 @@ int main(int argc, char *argv[]) default: suicide("failed to set the interface to up state"); } + if (setpgid(0, 0) < 0) + suicide("setpgid failed: %s", strerror(errno)); + spawn_ifch(); spawn_sockd(); ndhc_main();