× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Point of clarification - the file descriptors are zero-based - same as in Unix, etc. There is always a zero-value descriptor.

In interactive jobs, stdin = 0, stdout = 1, and stderr = 2 - always. In batch jobs, there is no display device and no entry device (keyboard), so none of these FDs are set. The FDs start at 0.

I have seen this repeatedly when debugging a sockets application running in batch and interactive jobs.

This brings up a thought - the FD is just an integer - it could be stored in code at each open, whether of a file or a socket.
On 6/6/2013 7:16 PM, CRPence wrote:
-snip-
Ignoring the possibility of a zero-value descriptor, ignoring any special processing that might occur for zero to three
-snip-

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.