diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-08-21 14:03:56 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-08-21 14:03:56 +0000 |
commit | 6b70aff5e978142535ddfbcad4074af2dbb4ac3c (patch) | |
tree | 06c84de3a714b4787336ecd50230991a48a3d67c /ace/Pipe.cpp | |
parent | 6deefe3253f27e9ea9bd76a09e85cb184941e2be (diff) | |
download | ATCD-6b70aff5e978142535ddfbcad4074af2dbb4ac3c.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/Pipe.cpp')
-rw-r--r-- | ace/Pipe.cpp | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/ace/Pipe.cpp b/ace/Pipe.cpp index 89793073529..e4f52a891f3 100644 --- a/ace/Pipe.cpp +++ b/ace/Pipe.cpp @@ -72,18 +72,28 @@ ACE_Pipe::open (void) #elif defined (ACE_HAS_STREAM_PIPES) if (ACE_OS::pipe (this->handles_) == -1) - ACE_ERROR_RETURN ((LM_ERROR, ASYS_TEXT ("%p\n"), ASYS_TEXT ("pipe")), -1); - + ACE_ERROR_RETURN ((LM_ERROR, + ASYS_TEXT ("%p\n"), + ASYS_TEXT ("pipe")), + -1); int arg = RMSGN; // Enable "msg no discard" mode, which ensures that record // boundaries are maintained when messages are sent and received. if (ACE_OS::ioctl (this->handles_[0], I_SRDOPT, (void *) arg) == -1 || ACE_OS::ioctl (this->handles_[1], I_SRDOPT, (void *) arg) == -1) - ACE_ERROR_RETURN ((LM_ERROR, ASYS_TEXT ("%p\n"), ASYS_TEXT ("ioctl")), -1); + ACE_ERROR_RETURN ((LM_ERROR, + ASYS_TEXT ("%p\n"), + ASYS_TEXT ("ioctl")), -1); #else - if (ACE_OS::socketpair (AF_UNIX, SOCK_DGRAM, 0, this->handles_) == -1) - ACE_ERROR_RETURN ((LM_ERROR, ASYS_TEXT ("%p\n"), ASYS_TEXT ("socketpair")), -1); + if (ACE_OS::socketpair (AF_UNIX, + SOCK_DGRAM, + 0, + this->handles_) == -1) + ACE_ERROR_RETURN ((LM_ERROR, + ASYS_TEXT ("%p\n"), + ASYS_TEXT ("socketpair")), + -1); #endif /* ACE_WIN32 */ // Point both the read and write HANDLES to the appropriate socket // HANDLEs. @@ -121,7 +131,8 @@ ACE_Pipe::ACE_Pipe (ACE_HANDLE handles[2]) ACE_TRACE ("ACE_Pipe::ACE_Pipe"); if (this->open (handles) == -1) - ACE_ERROR ((LM_ERROR, ASYS_TEXT ("ACE_Pipe::ACE_Pipe"))); + ACE_ERROR ((LM_ERROR, + ASYS_TEXT ("ACE_Pipe::ACE_Pipe"))); } ACE_Pipe::ACE_Pipe (ACE_HANDLE read, |