Overview
| Artifact ID: | d94bf4f4fabe3cb86227e04c6ba62729350f44c7 |
|---|---|
| Ticket: | 1034337fffffffffffffffffffffffffffffffff
recursive file/dir delete broken on OSX |
| User & Date: | nobody on 2005-09-30 01:02:04 |
Changes
- icomment:
Logged In: NO Issue: Side effect of this bug fix: Removing a file/dir using command "file delete -force" command hangs in Tcl 8.4.9, if the directory in question contains a temporary NFS file .nfsXXXX. unix> lr total 2 drwxr-xr-x 18 arvin eng7 1024 Sep 23 11:50 .. -rw-r--r-- 1 arvin eng7 0 Sep 23 11:50 .nfsB93A drwxr-xr-x 2 arvin eng7 96 Sep 23 11:51 . A NFS temp file is created and conents have been copied to this file. unix> tclsh % info patchlevel 8.4.6 % file delete -force tail-f_issue error deleting "tail-f_issue": file already exists % exit unix> tclsh % info patchlevel 8.4.9 % file delete -force tail-f_issue <hangs>....... This file cannot be deleted. If deleted, it gets re-created by NFS with a different number. Trussing the tcl process revealed that Tcl spins it's cycles in futile attempt to delete this file. truss -fae -p 5589 <snip> 5589: lstat64("tail-f_issue/.nfs95701", 0xFFBEDD30) = 0 5589: unlink("tail-f_issue/.nfs95701") = 0 5589: getdents64(3, 0x0004F038, 1048) = 0 5589: llseek(3, 0, SEEK_CUR) = 96 5589: llseek(3, 0, SEEK_SET) = 0 5589: getdents64(3, 0x0004F038, 1048) = 80 5589: lstat64("tail-f_issue/.nfsA5701", 0xFFBEDD30) = 0 5589: unlink("tail-f_issue/.nfsA5701") = 0 5589: getdents64(3, 0x0004F038, 1048) = 0 5589: llseek(3, 0, SEEK_CUR) = 96 5589: llseek(3, 0, SEEK_SET) = 0 5589: getdents64(3, 0x0004F038, 1048) = 80 5589: lstat64("tail-f_issue/.nfsB5701", 0xFFBEDD30) = 0 5589: unlink("tail-f_issue/.nfsB5701") = 0 5589: getdents64(3, 0x0004F038, 1048) = 0 5589: llseek(3, 0, SEEK_CUR) = 96 5589: llseek(3, 0, SEEK_SET) = 0 5589: getdents64(3, 0x0004F038, 1048) = 80 5589: lstat64("tail-f_issue/.nfsC5701", 0xFFBEDD30) = 0 5589: unlink("tail-f_issue/.nfsC5701") = 0 5589: getdents64(3, 0x0004F038, 1048) = 0 5589: llseek(3, 0, SEEK_CUR) = 96 5589: llseek(3, 0, SEEK_SET) = 0 5589: getdents64(3, 0x0004F038, 1048) = 80 5589: lstat64("tail-f_issue/.nfsD5701", 0xFFBEDD30) = 0 <snip> - login: "nobody"
- mimetype: "text/plain"
- username: "nobody"