On Sat, Nov 27, 2010 at 11:42 AM, Carlos A. M. dos Santos <unixmania at gmail.com> wrote: > > Did you try to use atexit(3) to register a deletion function? > That doesn't help you if the process crashes. The OP wants a solution that works even if the process doesn't exit cleanly.