Commit 447615c4 authored by Alessandro Rubini's avatar Alessandro Rubini

userspace/tools/radiusvlan: do not daemonize

We'd better not daemonize, so we can use the init.d scripts of hald and
other wr tools, with syslog support.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 3889ff7f
......@@ -659,17 +659,6 @@ int main(int argc, char **argv)
if (rvlan_initial_chack() < 0)
exit(1);
ret = 0;
if (!verbose)
ret = daemon(0, 1); /* lazy me */
else
printf("%s: verbose mode, not daemonizing\n", argv[0]);
if (ret < 0) {
fprintf(stderr, "%s: can't daemonize: %s\n", argv[0],
strerror(errno));
}
while (1) {
/* Use netlink/sniff/radius to run the state machines */
rvlan_poll_devices(sock);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment