X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fclean-temp.h;h=ff15641a19e9e4288d4456105a08f424e673605d;hb=991d8a3a009e937f6ad6f5df6207969294f96b13;hp=8a0774dcace6c905b7958ed23997a0141dccf2a5;hpb=2cd4d6d9023e923d6e5da19e8ced3e03290efa78;p=gnulib.git diff --git a/lib/clean-temp.h b/lib/clean-temp.h index 8a0774dca..ff15641a1 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, 2011 Free Software Foundation, Inc. + Copyright (C) 2006, 2011-2012 Free Software Foundation, Inc. Written by Bruno Haible , 2006. This program is free software: you can redistribute it and/or modify @@ -43,7 +43,12 @@ extern "C" { 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. */ + SIGBUS, SIGILL, SIGFPE. + + For the cleanup in the normal case, programs that use this module need to + call 'cleanup_temp_dir' for each successful return of 'create_temp_dir'. + The cleanup in the case of a fatal signal such as SIGINT, SIGTERM, SIGHUP, + is done entirely automatically by the functions of this module. */ struct temp_dir {