summaryrefslogtreecommitdiff
path: root/ACE
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2022-07-13 15:50:53 +0200
committerJohnny Willemsen <jwillemsen@remedy.nl>2022-07-13 15:50:53 +0200
commita0b4b6382c2010a622c819814bdee790ca3b7f8d (patch)
treeed8904bfa501b03ef3dddb78fa6eacbdd9733b40 /ACE
parent1edc75272eb9348504ce9932af88e8870d814c30 (diff)
downloadATCD-a0b4b6382c2010a622c819814bdee790ca3b7f8d.tar.gz
Layout changes
* ACE/ace/Pipe.cpp:
Diffstat (limited to 'ACE')
-rw-r--r--ACE/ace/Pipe.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/ACE/ace/Pipe.cpp b/ACE/ace/Pipe.cpp
index a6a9874e309..250764f93f6 100644
--- a/ACE/ace/Pipe.cpp
+++ b/ACE/ace/Pipe.cpp
@@ -91,17 +91,19 @@ ACE_Pipe::open (int buffer_size)
# endif /* ACE_WIN32 */
// Bind listener to any port and then find out what the port was.
- if (acceptor.open (local_any) == -1
- || acceptor.get_local_addr (my_addr) == -1)
- result = -1;
+ if (acceptor.open (local_any) == -1 || acceptor.get_local_addr (my_addr) == -1)
+ {
+ result = -1;
+ }
else
{
- ACE_INET_Addr sv_addr (my_addr.get_port_number (),
- ACE_LOCALHOST);
+ ACE_INET_Addr sv_addr (my_addr.get_port_number (), ACE_LOCALHOST);
// Establish a connection within the same process.
if (connector.connect (writer, sv_addr) == -1)
- result = -1;
+ {
+ result = -1;
+ }
else if (acceptor.accept (reader) == -1)
{
writer.close ();