Commit 00262370 authored by Russ Cox's avatar Russ Cox

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
parent 39b12e2d
......@@ -252,6 +252,7 @@ main(int argc, char *argv[])
dtype = 4;
if(outfile == 0)
outfile = "5.out";
unlink(outfile);
cout = create(outfile, 1, 0775);
if(cout < 0) {
diag("%s: cannot create", outfile);
......
......@@ -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);
......
......@@ -306,6 +306,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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment