version 1.5, 2007/06/05 09:28:23
|
version 1.6, 2008/06/19 17:57:00
|
|
|
AnonymousPipeHandle thePipe [2]; | AnonymousPipeHandle thePipe [2]; |
if (pipe (thePipe) < 0) | if (pipe (thePipe) < 0) |
{ | { |
PEG_TRACE((TRC_OS_ABSTRACTION, Tracer::LEVEL2, |
PEG_TRACE((TRC_OS_ABSTRACTION, Tracer::LEVEL1, |
"Failed to create pipe: %s", strerror (errno))); | "Failed to create pipe: %s", strerror (errno))); |
PEG_METHOD_EXIT (); | PEG_METHOD_EXIT (); |
| |
|
|
{ | { |
if (sscanf (readHandle, "%d", &_readHandle) != 1) | if (sscanf (readHandle, "%d", &_readHandle) != 1) |
{ | { |
PEG_TRACE((TRC_OS_ABSTRACTION, Tracer::LEVEL2, |
PEG_TRACE((TRC_OS_ABSTRACTION, Tracer::LEVEL1, |
"Failed to create pipe: invalid read handle %s", readHandle)); | "Failed to create pipe: invalid read handle %s", readHandle)); |
PEG_METHOD_EXIT (); | PEG_METHOD_EXIT (); |
| |
|
|
{ | { |
if (sscanf (writeHandle, "%d", &_writeHandle) != 1) | if (sscanf (writeHandle, "%d", &_writeHandle) != 1) |
{ | { |
PEG_TRACE((TRC_OS_ABSTRACTION, Tracer::LEVEL2, |
PEG_TRACE((TRC_OS_ABSTRACTION, Tracer::LEVEL1, |
"Failed to create pipe: invalid write handle %s", writeHandle)); | "Failed to create pipe: invalid write handle %s", writeHandle)); |
PEG_METHOD_EXIT (); | PEG_METHOD_EXIT (); |
| |