note
BrowserUk
<blockquote><i>I guess my concern is why the invalid open returned true.</i></blockquote>
<p>Because the (piped) [open] succeeded. It found and successfully ran the prince executable.
<P>The problem is that you are attributing the failed [close] to the failure to find the non-existent file; which is wrong.
<P>What you are attempting to close is the pipe to the prince executable; which fails because the executable closed its end of the pipe, when it terminated because it couldn't find the file.
<p>Bottom line: You cannot close the pipe because it is already closed. The confusion arises because you are attributing the failed close to the failure of the file to exist; rather than the fact the the pipe was already closed.
<div class="pmsig"><div class="pmsig-171588">
<hr />
<font size=1 >
<div>With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'</div>
<div>Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.</div>
<div>"Science is about questioning the status quo. Questioning authority". [http://www.bbc.co.uk/news/business-33609566|I knew I was on the right track :)]</div>
<div>In the absence of evidence, opinion is indistinguishable from prejudice. </div>
[http://www.theregister.co.uk/2015/01/19/got_bugs_got_anger_just_get_them_out_says_linus_torvalds/|I'm with torvalds on this] [http://vimeo.com/110554082|Agile (and TDD) debunked] [http://www.theregister.co.uk/2015/06/18/brendan_eich_announces_webassembly/|I told'em LLVM was the way to go. But did they listen!]
</font>
</div></div>
1140381
1140384