powertop: remove temporary file
Mohammad Merajul Islam Molla
PATCH 1/1 powertop: remove temporary file
powertop creates temporary file in /tmp directory during calibration. Simply closing the file does not remove it. Using unlink(), instead of close() to remove temporary file.
Signed-off-by Mohammad Merajul Islam Molla <meraj.enigma(a)gmail.com>
--- src/calibrate/calibrate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
src/calibrate/calibrate.cpp +1 -1
@@ -244,7 +244,7 @@ static void *burn_disk(void *dummy) printf("Error: %s\n", strerror(errno)); fdatasync(fd); } - close(fd); + unlink(filename); return NULL; }
Signature · 1 line
1.9.1