LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 03-16-2004, 09:33 PM   #1
gold5angel
LQ Newbie
 
Registered: Mar 2004
Location: China
Posts: 20

Rep: Reputation: 0
Bad: Broken pipe


Dear all,
I am coding a small program that list all libraries of executable files by using popen to ldd them. Then ls many times to get it properties. I used popen as well. And I pclose after using. But it sometimes is broken pipe or not show anything but press continue to quit. I coded in KDE. So there are any solutions to set skip this error, set PIPE size, or any suggestion to solve this idea.
 
Old 03-17-2004, 04:53 AM   #2
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
If you get a broken pipe,
that means that one of the proceses attached the pipe
dies before the other.
So one is outputting or the other exepecting input when
the co-process dies.

you are maybe exiting a process without closing the pipe
nicely?

maybe?
billy
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Broken pipe? Nubian Linux - Newbie 2 08-16-2005 08:56 AM
PCB and broken pipe jm31 Linux - Software 0 09-12-2004 12:20 PM
Broken pipe ? Red evil Linux - Software 1 01-16-2004 05:01 AM
Broken Pipe Cynthia Blue Linux - Newbie 0 12-30-2002 02:31 PM
ls - Broken pipe vcheah Linux - Software 2 10-30-2002 08:10 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:32 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration