Re:fabricate: The better "make". Finds dependencies automati...
by modeless on Monday July 27, 2009 @07:35PM
(#727024)
It is possible to do strace-like stuff on Windows too as evidenced by Process Monitor. http://technet.microsoft.com/en-us/sysinternals/bb896645.asp...
If scanning atimes is too slow or unreliable, perhaps fabricate could be updated to use procmon?
Re:fabricate: The better "make". Finds dependencies automati...
by benhoyt on Monday July 27, 2009 @11:56PM
(#727388)
Here's a version of strace for Windows: http://www.intellectualheaven.com/default.asp?BH=projects...
I've hacked it to print the actual file names on CreateFile() calls, but it's failing because it doesn't recurse and trace sub-processes. It should be theoretically possible by hooking CreateProcess(), but it's probably hard.
Re:fabricate: The better "make". Finds dependencies automati...
by silentbicycle on Monday July 27, 2009 @02:07PM
(#726337)
It uses strace, a Linux-specific file change notification hook. It's not available on BSD or (IIRC) OS X, though ktrace is, so it could conceivably be ported. (The page says something vague about cygwin having a comparable hook to strace. I haven't developed for cygwin, though.)
It looks like it checks for files modified specifically by its subprocesses.
How does it know which drives and directories to scan for recently modified files? Scanning all of them would take a while.