From 219384b7e58d6c32e1d48b56bb8256ce55e99290 Mon Sep 17 00:00:00 2001 From: angt Date: Mon, 18 Jan 2016 16:09:29 +0100 Subject: [PATCH] Remove the old school daemon option --- src/main.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/main.c b/src/main.c index faef1ce..580bbda 100644 --- a/src/main.c +++ b/src/main.c @@ -1100,7 +1100,6 @@ int main (int argc, char **argv) { "buffer-size", &buffer_size, option_long }, { "noquickack", NULL, option_option }, { "retry", &retry_opts, option_option }, - { "daemon", NULL, option_option }, { "statefile", &statefile, option_str }, { "timeout", &user_timeout, option_long }, { "debug", NULL, option_option }, @@ -1184,20 +1183,6 @@ int main (int argc, char **argv) if (gt_setup_secretkey(&ctx, keyfile)) return 1; - if (option_is_set(opts, "daemon")) { - switch (fork()) { - case -1: - perror("fork"); - return 1; - case 0: - if (setsid()==-1) - perror("setsid"); - break; - default: - _exit(0); - } - } - if (state_init(statefile)) return 1;