Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Redirect of stdout to pipe 'hangs'

Thread Tools

Redirect of stdout to pipe 'hangs'

SM Ryan
Posts: n/a
      08-12-2005 Removed) wrote:
# Iam working on Client, Server programming on Linux in C++.
# I have a Server Daemon running in the background, my client program
# talks to the Server and extracts some data which I
# am printing on the screen. This thing works fine but when i redirect
# the stdout to pipe it hangs for eternity,

If you're using <stdio.h>, you may have bufferring issues. You
can try using setvbuf or fflush to make sure output is actually
being written to the pipe.

SM Ryan
God's a skeeball fanatic.
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems redirecting STDOUT (NOT sys.stdout) to a pipe. Elad Python 0 03-19-2006 01:30 PM
Redirect of stdout to pipe 'hangs' C Programming 11 08-13-2005 12:28 PM
[named pipe] i wanna know about validate of pipe handle of client lee, wonsun C++ 1 11-02-2004 04:29 AM
Why does IO::Pipe::END generate an EXCEPT pipe message? Perl Misc 1 06-02-2004 02:17 PM
Basic Q - Response.Redirect, all redirect to first Response.Redirect statement Sal ASP .Net Web Controls 1 05-15-2004 03:46 PM