(handler): Delete export_file when we get a signal.
authorJim Wilson <wilson@gcc.gnu.org>
Wed, 24 Apr 1996 21:46:55 +0000 (14:46 -0700)
committerJim Wilson <wilson@gcc.gnu.org>
Wed, 24 Apr 1996 21:46:55 +0000 (14:46 -0700)
From-SVN: r11881

gcc/collect2.c

index 59ea363a5ab751b4110ea6edb06b097566700e7e..25cd99e20fe9b250ada0afd15be83940716254dc 100644 (file)
@@ -433,6 +433,9 @@ handler (signo)
   if (ldout != 0 && ldout[0])
     maybe_unlink (ldout);
 
+  if (export_file != 0 && export_file[0])
+    maybe_unlink (export_file);
+
   signal (signo, SIG_DFL);
   kill (getpid (), signo);
 }