Fix bug: don't signal an error when the type of a file handle can't be
authorChris Hanson <org/chris-hanson/cph>
Fri, 3 Nov 1995 01:23:41 +0000 (01:23 +0000)
committerChris Hanson <org/chris-hanson/cph>
Fri, 3 Nov 1995 01:23:41 +0000 (01:23 +0000)
determined.  Instead, just treat it like a pipe, which is
operationally the least common denominator.

v7/src/microcode/os2io.c

index fe7845ee79ae134319073d1588da0a84b81a100f..5d5a110912712c6ceb4bf7e1c2f57a8363bf76c3 100644 (file)
@@ -1,6 +1,6 @@
 /* -*-C-*-
 
-$Id: os2io.c,v 1.4 1995/04/28 06:45:37 cph Exp $
+$Id: os2io.c,v 1.5 1995/11/03 01:23:41 cph Exp $
 
 Copyright (c) 1994-95 Massachusetts Institute of Technology
 
@@ -155,8 +155,10 @@ handle_channel_type (LHANDLE handle)
            return (channel_type_unnamed_pipe);
        }
       }
-  OS2_error_anonymous ();
-  return (channel_type_unknown);
+  /* Anything that can't be recognized should be treated as a pipe.
+     This is safe since pipes aren't assumed to have any special
+     properties.  */
+  return (channel_type_unnamed_pipe);
 }
 
 static void