Skip to contentSkip to conversation

runltp cleanup() can't remove ${TMP}

LTP Eko 1 participant 1 message Jul 3, 2013 1 message not in the archive

lore
Share & tools
lore

Eko

author
#1 lore raw
In reply to a message not in the archive
runltp 2013-07-03 10:32:22.958314831 +0800 renamed from runltp.bak 2013-07-03 10:18:28.375259716 +0800 +5 -0
@@ -1014,6 +1014,11 @@
 
  cleanup()
  {
+    for file in ${TMP}/*
+    do
+        umount $file > /dev/null 2>&1
+    done
+
      [ "$LOOP_DEV" ] && losetup -d $LOOP_DEV
      [ -e "${TEMP}/test.img" ] && rm -f ${TEMP}/test.img
      rm -rf ${TMP}
Signature · 15 lines
Best Regards,
Eko
--


------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list