]> git.ozlabs.org Git - ccan-lca-2011.git/blobdiff - ccan/oserver/test/run.c
lca2011: dump on SIGHUP.
[ccan-lca-2011.git] / ccan / oserver / test / run.c
index 03180c9bec8ccccb6bcc524562aa2134fe7eb4ff..a8eb6f24391042b064cddaa243fe2c3ac80c2762 100644 (file)
@@ -1,4 +1,5 @@
 #include <ccan/oserver/oserver.c>
+#include <ccan/oserver/oserver_cdump.c>
 #include <ccan/oserver/oserver.h>
 #include <ccan/str/str.h>
 #include <ccan/tap/tap.h>
@@ -19,7 +20,7 @@ static void run_server(int readyfd, int exitfd)
 {
        struct tevent_context *ev = tevent_context_init(NULL);
 
-       if (oserver_setup(ev, OSERVER_PORT) == NULL)
+       if (oserver_setup(ev, OSERVER_PORT, NULL) == NULL)
                exit(1);
 
        tevent_add_fd(ev, ev, exitfd, TEVENT_FD_READ, exit_quietly, NULL);