summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>1998-03-04 01:19:02 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>1998-03-04 01:19:02 +0000
commit626b3c76feebbc0613871d29e13dd4122f3ba747 (patch)
treeb55a9b44f4bb5c3837ceb5e8e8d0643074228126
parent321dd4918cfe143845ce009f43952e90d456a64e (diff)
Remove window of ^C "opportunity" -- could leave junk files in /tmp
-rw-r--r--gnu/usr.bin/groff/indxbib/indxbib.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/groff/indxbib/indxbib.cc b/gnu/usr.bin/groff/indxbib/indxbib.cc
index fb353247c80..289bec1376b 100644
--- a/gnu/usr.bin/groff/indxbib/indxbib.cc
+++ b/gnu/usr.bin/groff/indxbib/indxbib.cc
@@ -219,10 +219,10 @@ int main(int argc, char **argv)
else {
temp_index_file = strsave(TEMP_INDEX_TEMPLATE);
}
+ catch_fatal_signals();
int fd = mkstemp(temp_index_file);
if (fd == -1 || !temp_index_file[0])
fatal("cannot create file name for temporary file");
- catch_fatal_signals();
if (fchmod(fd, S_IRUSR|S_IRGRP|S_IROTH) < 0)
fatal("cannot change permissions for temporary file");
indxfp = fdopen(fd, "w");