blob: 6dd5fb61c3d38b23f9afc298dfdf520c72ed0e14 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
--- magick/utility.c Sat Apr 2 17:35:06 2005
+++ magick/utility.c Sun Jul 24 18:22:40 2005
@@ -47,4 +47,8 @@
#include "magick/utility.h"
+#if defined(POSIX)
+# include <sys/types.h>
+# include <sys/wait.h>
+#endif
/*
@@ -3874,4 +3878,9 @@
#if defined(POSIX)
status=system(command);
+ if (status == -1)
+ perror(command);
+ else if (WIFSIGNALED(status)) {
+ fprintf(stderr, "Command ``\n%s\n'' terminated due to signal %d\n", command, WTERMSIG(status));
+ }
#elif defined(vms)
status=!system(command);
|