in reply to Re: select, stat, and waiting for files
in thread select, stat, and waiting for files

The problem with this approach is that the signal will probably appear before the file is actually completely written to the disk, due to the write-caching of most modern 'NIX systems. This makes it dangerous to assume anything based on the scp.
  • Comment on Re^2: select, stat, and waiting for files

Replies are listed 'Best First'.
Re^3: select, stat, and waiting for files
by sgifford (Prior) on Sep 12, 2005 at 15:38 UTC
    It doesn't matter whether the file is physically written to disk; the kernel will pretend that it is, and scp will use the kernel to access the file so will see it that way.

    The only time having the file physically on disk would matter would be if the machine shut off unexpectedly, or if something was accessing the disk directly instead of using the kernel's filesystem drivers.