Make lib/strntol.c a stand-alone library
[fio.git] / fio.c
diff --git a/fio.c b/fio.c
index 44354e289ee873dc52eeffca2385ee76a1d5db85..7b3a50b6cba12df253bed9517be46cdc950fde2d 100644 (file)
--- a/fio.c
+++ b/fio.c
@@ -32,6 +32,8 @@ int main(int argc, char *argv[], char *envp[])
 {
        int ret = 1;
 
+       compiletime_assert(TD_NR <= TD_ENG_FLAG_SHIFT, "TD_ENG_FLAG_SHIFT");
+
        if (initialize_fio(envp))
                return 1;
 
@@ -43,7 +45,7 @@ int main(int argc, char *argv[], char *envp[])
                goto done;
 
        if (parse_options(argc, argv))
-               goto done;
+               goto done_key;
 
        /*
         * line buffer stdout to avoid output lines from multiple
@@ -57,11 +59,13 @@ int main(int argc, char *argv[], char *envp[])
                set_genesis_time();
 
                if (fio_start_all_clients())
-                       goto done;
+                       goto done_key;
                ret = fio_handle_clients(&fio_client_ops);
        } else
                ret = fio_backend(NULL);
 
+done_key:
+       fio_server_destroy_sk_key();
 done:
        deinitialize_fio();
        return ret;