[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

politeness, good programming style, and pipes

From: Brian Blais
Subject: politeness, good programming style, and pipes
Date: Sat, 24 Dec 2005 06:33:52 -0500
User-agent: Mozilla Thunderbird 1.0.6 (X11/20050716)


I was wondering what the proper way to handle the closing of pipes is.  If I 
open up
a pipe to another program (using popen or popen2), and intend on always keeping it alive until octave actually exists, should I take care of closing it myself or will
this happen automagically when octave exits?  Should I use atexit() to take 
care of
the closing of this pipe?  What does octave do with gnuplot for such a case?


                        Brian Blais



Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]