diff options
author | Christopher Faylor <me@cgf.cx> | 2011-08-12 16:55:35 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2011-08-12 16:55:35 +0000 |
commit | e1d5167d200bbdb32277c711c62d5036c9f844cf (patch) | |
tree | 2a0d8138f84bbb48b5070fb305c33a69c97df829 /winsup/cygwin/miscfuncs.cc | |
parent | 3de280907309e613374c04aeb436c9385dce611c (diff) | |
download | cygnal-e1d5167d200bbdb32277c711c62d5036c9f844cf.tar.gz cygnal-e1d5167d200bbdb32277c711c62d5036c9f844cf.tar.bz2 cygnal-e1d5167d200bbdb32277c711c62d5036c9f844cf.zip |
* miscfuncs.cc (create_pipe): Delete obsolete function.
* miscfuncs.h (create_pipe): Delete define.
* pipe.c (fhandler_pipe::create_selectable): Delete obsolete comment.
Diffstat (limited to 'winsup/cygwin/miscfuncs.cc')
-rw-r--r-- | winsup/cygwin/miscfuncs.cc | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/winsup/cygwin/miscfuncs.cc b/winsup/cygwin/miscfuncs.cc index 14d67789f..42880c12c 100644 --- a/winsup/cygwin/miscfuncs.cc +++ b/winsup/cygwin/miscfuncs.cc @@ -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. */ |