Commit 27dd999
Eagerly close temporary init script file
Various of my qemu instances have hung and I had to kill them
forcefully. As a result, I ended up with 10+ vmtest-initGDllO.sh files
in my /tmp/ folder.
I think we don't have to rely on destructor based clean up in this
instance: after the end of the setup phase the init script should no
longer be accessed via file system path and so we can just unlink it.
This way, no matter how the process dies after that point, the temporary
file will always be gone as well.
Signed-off-by: Daniel Müller <deso@posteo.net>1 parent be4e096 commit 27dd999
1 file changed
+12
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
69 | 72 | | |
70 | 73 | | |
71 | 74 | | |
| |||
687 | 690 | | |
688 | 691 | | |
689 | 692 | | |
690 | | - | |
| 693 | + | |
691 | 694 | | |
692 | 695 | | |
693 | 696 | | |
| |||
1070 | 1073 | | |
1071 | 1074 | | |
1072 | 1075 | | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
1073 | 1082 | | |
1074 | 1083 | | |
1075 | 1084 | | |
| |||
1102 | 1111 | | |
1103 | 1112 | | |
1104 | 1113 | | |
1105 | | - | |
| 1114 | + | |
1106 | 1115 | | |
1107 | 1116 | | |
1108 | 1117 | | |
| |||
0 commit comments