summaryrefslogtreecommitdiff
path: root/ACE/examples/OS/Process
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2008-08-06 08:50:20 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2008-08-06 08:50:20 +0000
commit2b26aba30ce6ac715e493373a840f6e9a9f2b89c (patch)
tree57d98a6bca136ed005456c4a502d533440a9d241 /ACE/examples/OS/Process
parentd725a40290b71816b5bb243cfa92cffd94940290 (diff)
downloadATCD-2b26aba30ce6ac715e493373a840f6e9a9f2b89c.tar.gz
Wed Aug 6 08:49:11 UTC 2008 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'ACE/examples/OS/Process')
-rw-r--r--ACE/examples/OS/Process/imore.cpp22
1 files changed, 13 insertions, 9 deletions
diff --git a/ACE/examples/OS/Process/imore.cpp b/ACE/examples/OS/Process/imore.cpp
index 3c77ef228e4..2cfd8c19181 100644
--- a/ACE/examples/OS/Process/imore.cpp
+++ b/ACE/examples/OS/Process/imore.cpp
@@ -179,15 +179,19 @@ print_file (ACE_HANDLE infd)
while ((len = ACE_OS::read (infd, buffer, BUFSIZ)) > 0)
{
if ((ACE_OS::write (ACE_STDOUT, buffer, len) != len))
- if (errno == EPIPE)
- {
- // I tried to "produce" EPIPE warning to test
- // the program but never seen one. (odd.)
- // ACE_ERROR ((LM_ERROR, "\n\nEPIPE\n"));
- break;
- }
- else
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "write"), -1);
+ {
+ if (errno == EPIPE)
+ {
+ // I tried to "produce" EPIPE warning to test
+ // the program but never seen one. (odd.)
+ // ACE_ERROR ((LM_ERROR, "\n\nEPIPE\n"));
+ break;
+ }
+ else
+ {
+ ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "write"), -1);
+ }
+ }
}
return 0;
}