LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 11-17-2009, 01:08 PM   #16
Kunsheng
Member
 
Registered: Mar 2009
Posts: 82

Original Poster
Rep: Reputation: 16

Quote:
Originally Posted by smeezekitty View Post
But maybe its better to wait for the child to finish before your read the output?

In the fork/pipe solution the parent blocks read function until something come out from child, and usually this happens right before the child exiting, I think it suffices to handle situation like this.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange output when running a C program over itself Dralnu Programming 5 05-13-2009 05:15 PM
How do you read gzip output from 'C' program? bjdea1 Programming 2 03-12-2006 06:24 PM
Capturing standard output from external program brianvdc Linux - Software 1 02-12-2003 04:20 AM


All times are GMT -5. The time now is 04:06 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration