* 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> 2005-10-20 Corinna Vinschen <corinna@vinschen.de>
* cygwin.din (futimes): Export. * cygwin.din (futimes): Export.

View File

@ -305,9 +305,6 @@ rmdir (const char *dir)
if (fh->error ()) if (fh->error ())
{ {
debug_printf ("got %d error from build_fh_name", 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 ()) else if (!fh->rmdir ())

View File

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