This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA/mingw32] stdin redirection


On Thu, Apr 19, 2007 at 02:20:08PM +0200, Jerome Guitton wrote:
> +  if (GetFileType ((HANDLE) _get_osfhandle (fd)) == FILE_TYPE_DISK)

Hey neat, I didn't know that was there.

> +      SetEvent (state->read_event);
> +      continue;
> +
> +      /* Delay 10ms before checking again, but allow the stop event
> +	 to wake us.  */
> +      if (WaitForSingleObject (state->stop_select, 10) == WAIT_OBJECT_0)
> +	continue;
> +
> +      goto retry;

I assume you meant to delete the code at the bottom and the retry
label.  OK with that change.


-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]