* dir.cc (rmdir): Eliminate nonsensical code.

* fork.cc (fork): Move exit debug_printf to last statement.
This commit is contained in:
Christopher Faylor 2005-10-21 14:08:19 +00:00
parent 09968b6d27
commit a591389de3
3 changed files with 8 additions and 5 deletions

View File

@ -1,3 +1,9 @@
2005-10-21 Christopher Faylor <cgf@timesys.com>
* dir.cc (rmdir): Eliminate nonsensical code.
* fork.cc (fork): Move exit debug_printf to last statement.
2005-10-20 Corinna Vinschen <corinna@vinschen.de>
* cygwin.din (futimes): Export.

View File

@ -305,10 +305,7 @@ rmdir (const char *dir)
if (fh->error ())
{
debug_printf ("got %d error from build_fh_name", fh->error ());
if (fh->error ())
set_errno (EROFS);
else
set_errno (fh->error ());
set_errno (fh->error ());
}
else if (!fh->rmdir ())
res = 0;

View File

@ -601,8 +601,8 @@ fork ()
set_errno (grouped.this_errno);
}
syscall_printf ("%d = fork()", res);
sig_send (NULL, __SIGNOHOLD);
syscall_printf ("%d = fork()", res);
return res;
}
#ifdef DEBUGGING