|
From: Hariprasad N. <ha...@in...> - 2003-12-29 08:46:57
|
Hello, "lkcd save" leaves a dummy dump file in the /var/log/dump directory if no dump exists. The attached patch removes the file in case __kl_dump_retrieve does not retrieve the dump. Regards, Hari Hariprasad Nellitheertha Linux Technology Center India Software Labs IBM India, Bangalore. --- lkcdutils/libklib/kl_savedump.c.orig 2003-09-03 13:47:21.000000000 +0530 +++ lkcdutils/libklib/kl_savedump.c 2003-12-29 11:18:36.000000000 +0530 @@ -220,6 +220,8 @@ close(devf); if(outf) close(outf); + if(rc == 0) + unlink(file_name); return rc; } |