summaryrefslogtreecommitdiff
path: root/src/cmd/6l/obj.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-08-07 15:22:09 -0700
committerRuss Cox <rsc@golang.org>2009-08-07 15:22:09 -0700
commit8f188ef3ddff58686110cccb4ab52863cc00bd66 (patch)
treecd8e58f34e17598abfbf2420a399e2c497667698 /src/cmd/6l/obj.c
parent2bfaac475b840fa5a18fc6a69738b8e358b47cfc (diff)
downloadgolang-8f188ef3ddff58686110cccb4ab52863cc00bd66.tar.gz
remove 8.out before creating it.
hope this will work around Mac NFS bug where writing to an 8.out that has crashed recently sometimes wedges NFS. R=r DELTA=3 (3 added, 0 deleted, 0 changed) OCL=32906 CL=32908
Diffstat (limited to 'src/cmd/6l/obj.c')
-rw-r--r--src/cmd/6l/obj.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/6l/obj.c b/src/cmd/6l/obj.c
index 66d1e7eed..75fe3ca03 100644
--- a/src/cmd/6l/obj.c
+++ b/src/cmd/6l/obj.c
@@ -337,6 +337,7 @@ main(int argc, char *argv[])
edatap = P;
pc = 0;
dtype = 4;
+ unlink(outfile);
cout = create(outfile, 1, 0775);
if(cout < 0) {
diag("cannot create %s", outfile);