This way, warnings from peer initialization, for example, are reported
to the stdio admin client rather than stderr.
rand_noisesrc(RAND_GLOBAL, &noise_source);
rand_seed(RAND_GLOBAL, MAXHASHSZ);
signal(SIGPIPE, SIG_IGN);
- for (i = 0; tunnels[i]; i++)
- tunnels[i]->init();
- p_init();
- p_bind(ailist); freeaddrinfo(ailist);
+
if (!(f & f_daemon)) {
af = AF_WARN;
#ifndef NTRACE
a_switcherr();
}
+ p_init();
+ for (i = 0; tunnels[i]; i++)
+ tunnels[i]->init();
+ p_bind(ailist); freeaddrinfo(ailist);
+
for (i = 0; tunnels[i]; i++) {
if (tunnels[i]->flags&TUNF_PRIVOPEN) {
ps_split(f & f_daemon);