(main): Don't catch SIGPIPE if no such signal.

From-SVN: r5782
This commit is contained in:
Richard Kenner 1993-10-13 17:55:46 -04:00
parent 65715deac9
commit 0e57600536
1 changed files with 2 additions and 0 deletions

View File

@ -1030,7 +1030,9 @@ main (argc, argv)
}
#endif /* RLIMIT_STACK defined */
#ifdef SIGPIPE
signal (SIGPIPE, pipe_closed);
#endif
p = argv[0] + strlen (argv[0]);
while (p != argv[0] && p[-1] != '/') --p;