chiark
/
gitweb
/
~mdw
/
tripe
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
server/tripe.c: Establish the stdio admin client early.
[tripe]
/
server
/
tripe.c
diff --git
a/server/tripe.c
b/server/tripe.c
index 60460598a0b85299482322d46356736557b3cf90..aa225da77fbdc205039188f92d09d11f1ce7264d 100644
(file)
--- a/
server/tripe.c
+++ b/
server/tripe.c
@@
-292,10
+292,7
@@
int main(int argc, char *argv[])
rand_noisesrc(RAND_GLOBAL, &noise_source);
rand_seed(RAND_GLOBAL, MAXHASHSZ);
signal(SIGPIPE, SIG_IGN);
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
if (!(f & f_daemon)) {
af = AF_WARN;
#ifndef NTRACE
@@
-307,6
+304,11
@@
int main(int argc, char *argv[])
a_switcherr();
}
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);
for (i = 0; tunnels[i]; i++) {
if (tunnels[i]->flags&TUNF_PRIVOPEN) {
ps_split(f & f_daemon);