summaryrefslogtreecommitdiff
path: root/lib/clean-temp.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-04-27 23:28:48 +0200
committerBruno Haible <bruno@clisp.org>2011-04-27 23:29:32 +0200
commit5ea8bedd0c6a7a8f29dcff301d126b58cc123ea8 (patch)
treed1e9b5c214e54e004b806bb24ac416ecbee83e23 /lib/clean-temp.h
parent825499de077435754651ff49b3f3dba576a2ebc6 (diff)
downloadgnulib-5ea8bedd0c6a7a8f29dcff301d126b58cc123ea8.tar.gz
clean-temp: Clarify what it does.
* lib/clean-temp.h: Add more comments. * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp' module. * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too. * doc/glibc-functions/mkstemps.texi: Likewise. * doc/glibc-functions/mkostemps.texi: Likewise.
Diffstat (limited to 'lib/clean-temp.h')
-rw-r--r--lib/clean-temp.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/clean-temp.h b/lib/clean-temp.h
index 07c45ab22d..cac0702065 100644
--- a/lib/clean-temp.h
+++ b/lib/clean-temp.h
@@ -1,5 +1,5 @@
/* Temporary directories and temporary files with automatic cleanup.
- Copyright (C) 2006, 2009-2011 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2011 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
@@ -39,7 +39,11 @@ extern "C" {
This module provides support for temporary directories and temporary files
inside these temporary directories. Temporary files without temporary
- directories are not supported here. */
+ directories are not supported here. The temporary directories and files
+ are automatically cleaned up (at the latest) when the program exits or
+ dies from a fatal signal such as SIGINT, SIGTERM, SIGHUP, but not if it
+ dies from a fatal signal such as SIGQUIT, SIGKILL, or SIGABRT, SIGSEGV,
+ SIGBUS, SIGILL, SIGFPE, */
struct temp_dir
{