#include <sys/stat.h>
#include <ctype.h>
#include <stdio.h>
+#include <signal.h>
#ifndef VMS
#ifndef USG
void fancy_abort ();
static void pfatal_with_name ();
static void perror_with_name ();
+static void pipe_closed ();
static void print_containing_files ();
static int lookup_import ();
static int redundant_include_p ();
}
#endif /* RLIMIT_STACK defined */
+ signal (SIGPIPE, pipe_closed);
+
progname = argv[0];
#ifdef VMS
{
#endif
}
+/* Handler for SIGPIPE. */
+
+static void
+pipe_closed (signo)
+ /* If this is missing, some compilers complain. */
+ int signo;
+{
+ fatal ("output pipe has been closed");
+}
\f
static void
memory_full ()