On Thu, 28 May 1998, Jim Zelenka wrote:

| I think the question was not so much "What is your application doing?"
| as "Please give as an example a couple lines of perl code which
| demonstrates the problem, as well as the invocation of echo which does
| not cause the problem."
| 
| AFS does not write changes back from the client cache to the fileserver
| until the file is closed. Does a close operation in your perl script map
| directly to a close() operation on the file descriptor?

  I think so:

  This from perlio.c in perl5.004_04:

int
PerlIO_close(f)
PerlIO *f;
{
 return fclose(f);
}

  It looks like PerlIO_close is used as the generic close() call
throughout.  Given the lack of comments in the published source its
difficult to see at a quick glance if there is optimization done, but I
don't think so.

  close() on an open fd in Perl should just map to an fclose().  

  Running truss/trace on the program is the best way to see what its
doing.

  -bws

--
Brian W. Spolarich - ANS Communications - [EMAIL PROTECTED] - 734-214-7311
              "Not a whit, we defy augury." - Hamlet, V, ii

Reply via email to