]> git.sesse.net Git - nageru/blobdiff - futatabi/vis.cpp
On errors, abort() instead of exit(1); exit() in a multithreaded program just gives...
[nageru] / futatabi / vis.cpp
index c67a0ccec6278a72b1feed7f4dd57b0e86ddf5eb..5585f6ad3bb3d0ed4037cc174a3d22de6741a39d 100644 (file)
@@ -12,7 +12,7 @@ int main(int argc, char **argv)
 {
        if (argc != 3) {
                fprintf(stderr, "Usage: ./vis input.flo out.ppm\n");
-               exit(1);
+               abort();
        }
 
        Flow flow = read_flow(argv[1]);