1
0
mirror of https://github.com/adtools/clib2.git synced 2025-12-08 14:59:05 +00:00

- Elaborated on the unidirectional/bidirectional PIPE: issues.

git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@15199 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Olaf Barthel
2008-05-07 09:33:55 +00:00
parent f28dcf8ed1
commit b9ad1fda3f

View File

@ -1,5 +1,5 @@
/*
* $Id: stdio_popen.c,v 1.9 2006-01-08 12:04:24 obarthel Exp $
* $Id: stdio_popen.c,v 1.10 2008-05-07 09:33:55 obarthel Exp $
*
* :ts=4
*
@ -154,7 +154,9 @@ popen(const char *command, const char *type)
goto out;
}
/* The current PIPE: device only supports unidirectional connections. */
/* The current PIPE: device only supports unidirectional connections. Worse: even if
a PIPE: device with bidirectional connection support were available, we would
be unable to detect this property. */
if((type[1] == '+') || (type[1] != '\0' && type[2] == '+'))
{
D(("unsupported access mode '%s'",type));