* miscfuncs.cc (create_pipe): Delete obsolete function.

* miscfuncs.h (create_pipe): Delete define.
* pipe.c (fhandler_pipe::create_selectable): Delete obsolete comment.
This commit is contained in:
Christopher Faylor
2011-08-12 16:55:35 +00:00
parent 3de2809073
commit e1d5167d20
4 changed files with 7 additions and 16 deletions

View File

@ -332,20 +332,6 @@ nice_to_winprio (int &nice)
return prio;
}
#undef CreatePipe
bool
create_pipe (PHANDLE hr,PHANDLE hw, LPSECURITY_ATTRIBUTES sa, DWORD n)
{
for (int i = 0; i < 10; i++)
if (CreatePipe (hr, hw, sa, n))
return true;
else if (GetLastError () == ERROR_PIPE_BUSY && i < 9)
Sleep (10);
else
break;
return false;
}
/* backslashify: Convert all forward slashes in src path to back slashes
in dst path. Add a trailing slash to dst when trailing_slash_p arg
is set to 1. */