Commit b1ac3a27 authored by Niels Möller's avatar Niels Möller
Browse files

* src/io.c (io_final): Call gc_final. That makes sure that all

callbacks are cancelled. Updated callers to not use gc_final, only
io_final.

Rev: src/lsh-decode-key.c:1.11
Rev: src/lsh-export-key.c:1.11
Rev: src/lsh.c:1.148
Rev: src/lsh_proxy.c:1.25
Rev: src/lshd.c:1.125
Rev: src/lshg.c:1.15
Rev: src/sexp-conv.c:1.10
Rev: src/srp-gen.c:1.12
parent a91c1de9
......@@ -261,8 +261,8 @@ int main(int argc, char **argv)
NULL);
io_run();
io_final();
gc_final();
return EXIT_SUCCESS;
}
......@@ -375,7 +375,6 @@ int main(int argc, char **argv)
io_run();
io_final();
gc_final();
return exit_code;
}
......
......@@ -989,8 +989,6 @@ int main(int argc, char **argv)
/* Close all files and other resources associated with the backend. */
io_final();
gc_final();
/* FIXME: Perhaps we have to reset the stdio file descriptors to
* blocking mode? */
return lsh_exit_code;
......
......@@ -810,7 +810,6 @@ int main(int argc, char **argv)
io_run();
io_final();
gc_final();
return 0;
}
......@@ -738,7 +738,7 @@ main_argp =
static void
do_terminate_callback(struct lsh_callback *s UNUSED)
{
gc_final();
io_final();
exit(0);
}
......@@ -933,7 +933,6 @@ int main(int argc, char **argv)
io_run();
io_final();
gc_final();
return 0;
}
......@@ -287,8 +287,6 @@ main(int argc, char **argv)
/* Close all files and other resources associated with the backend. */
io_final();
gc_final();
return exit_code;
}
......@@ -423,7 +423,6 @@ int main(int argc, char **argv)
io_run();
io_final();
gc_final();
return exit_code;
}
......@@ -254,8 +254,6 @@ int main(int argc, char **argv)
io_run();
io_final();
gc_final();
return EXIT_SUCCESS;
}
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