Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
9e263fc4
Commit
9e263fc4
authored
Jan 12, 1993
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(main): Set signal handler for SIGPIPE.
(pipe_closed): New function, to handle SIGPIPE. From-SVN: r3205
parent
a7c5971a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
gcc/cccp.c
+13
-0
No files found.
gcc/cccp.c
View file @
9e263fc4
...
...
@@ -75,6 +75,7 @@ typedef unsigned char U_CHAR;
#include <sys/stat.h>
#include <ctype.h>
#include <stdio.h>
#include <signal.h>
#ifndef VMS
#ifndef USG
...
...
@@ -248,6 +249,7 @@ static void fatal ();
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
();
...
...
@@ -983,6 +985,8 @@ main (argc, argv)
}
#endif
/* RLIMIT_STACK defined */
signal
(
SIGPIPE
,
pipe_closed
);
progname
=
argv
[
0
];
#ifdef VMS
{
...
...
@@ -8662,6 +8666,15 @@ pfatal_with_name (name)
#endif
}
/* Handler for SIGPIPE. */
static
void
pipe_closed
(
signo
)
/* If this is missing, some compilers complain. */
int
signo
;
{
fatal
(
"output pipe has been closed"
);
}
static
void
memory_full
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment