-/* $OpenBSD: dhclient.c,v 1.551 2018/01/30 13:22:42 krw Exp $ */
+/* $OpenBSD: dhclient.c,v 1.552 2018/02/05 03:59:49 krw Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
struct client_lease *packet_to_lease(struct interface_info *,
struct option_data *);
-void go_daemon(const char *);
+void go_daemon(void);
int rdaemon(int);
void take_charge(struct interface_info *, int);
void set_default_client_identifier(struct interface_info *);
set_timeout(ifi, 1, state_reboot);
} else {
if (interval > config->link_timeout)
- go_daemon(ifi->name);
+ go_daemon();
ifi->state = S_PREBOOT;
set_timeout(ifi, 1, state_preboot);
}
);
free(ifi->offer_src);
ifi->offer_src = NULL;
- go_daemon(ifi->name);
+ go_daemon();
rewrite_option_db(ifi->name, ifi->active, lease);
free_client_lease(lease);
free(active_proposal);
log_procname);
ifi->state = S_INIT;
set_timeout(ifi, config->retry_interval, state_init);
- go_daemon(ifi->name);
+ go_daemon();
}
void
}
void
-go_daemon(const char *name)
+go_daemon(void)
{
static int daemonized = 0;
if (chdir("/") == -1)
fatal("chdir(\"/\")");
- go_daemon(ifi->name);
+ go_daemon();
if (log_procname != NULL)
free(log_procname);