diff options
author | John Hawthorn <jhawthor@uvic.ca> | 2009-08-31 01:25:57 -0700 |
---|---|---|
committer | John Hawthorn <jhawthor@uvic.ca> | 2009-08-31 01:25:57 -0700 |
commit | 403bc87fc4cd16624ddd12e3a4b00256b8295528 (patch) | |
tree | 405df9ee6980a7a6ee707a4b924eb57dc5e8001c | |
parent | 607d25dfb9fec63b79f1ba9258480edf99d1161e (diff) | |
download | mirror-meh-403bc87fc4cd16624ddd12e3a4b00256b8295528.tar.gz mirror-meh-403bc87fc4cd16624ddd12e3a4b00256b8295528.tar.bz2 mirror-meh-403bc87fc4cd16624ddd12e3a4b00256b8295528.zip |
silence imagemagick
-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{ |