X-Git-Url: http://plrg.eecs.uci.edu/git/?p=c11tester.git;a=blobdiff_plain;f=pipe.cc;h=95a9a43970f524d9be415e45776303cd0b50bf30;hp=b915c7927377f21005194d97289f7f6b799071ad;hb=fcc90758629b11f123081c80bb3c37e7ca2a4608;hpb=bbc0bd0561362e1cb93c04fddc165b49d83c24ed diff --git a/pipe.cc b/pipe.cc index b915c792..95a9a439 100644 --- a/pipe.cc +++ b/pipe.cc @@ -8,18 +8,18 @@ static int (*pipe_init_p)(int filep[2]) = NULL; int pipe(int fildes[2]) { - if (!model) { - snapshot_system_init(10000, 1024, 1024, 40000); - model = new ModelChecker(); - model->startChecker(); - } - if (!pipe_init_p) { - pipe_init_p = (int (*)(int fildes[2])) dlsym(RTLD_NEXT, "pipe"); - char *error = dlerror(); - if (error != NULL) { - fputs(error, stderr); - exit(EXIT_FAILURE); - } - } - return pipe_init_p(fildes); + if (!model) { + snapshot_system_init(10000, 1024, 1024, 40000); + model = new ModelChecker(); + model->startChecker(); + } + if (!pipe_init_p) { + pipe_init_p = (int (*)(int fildes[2]))dlsym(RTLD_NEXT, "pipe"); + char *error = dlerror(); + if (error != NULL) { + fputs(error, stderr); + exit(EXIT_FAILURE); + } + } + return pipe_init_p(fildes); }