diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 1998-03-04 01:19:02 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 1998-03-04 01:19:02 +0000 |
commit | 626b3c76feebbc0613871d29e13dd4122f3ba747 (patch) | |
tree | b55a9b44f4bb5c3837ceb5e8e8d0643074228126 /gnu | |
parent | 321dd4918cfe143845ce009f43952e90d456a64e (diff) |
Remove window of ^C "opportunity" -- could leave junk files in /tmp
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/groff/indxbib/indxbib.cc | 2 |
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"); |