diff options
-rw-r--r-- | src/imagemagick.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/imagemagick.c b/src/imagemagick.c index 5722bb7..4fbb8cb 100644 --- a/src/imagemagick.c +++ b/src/imagemagick.c @@ -33,7 +33,15 @@ struct image *imagemagick_open(FILE *f){ asprintf(&argv[3], "fd:%i", origfd); asprintf(&argv[4], "ppm:fd:%i", tmpfd[1]); argv[5] = NULL; + +#ifndef NDEBUG + /* STFU OMFG */ + freopen("/dev/null", "w", stdout); + freopen("/dev/null", "w", stderr); +#endif + execvp(argv[0], argv); + perror("exec"); exit(EXIT_FAILURE); }else{ |