Created
January 21, 2014 17:21
-
-
Save swalberg/8544189 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bob:tmp $ strace -e trace=file ruby ./test.rb |& grep foo | |
open("/tmp/foo.rb", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 7 | |
open("/tmp/foo.rb", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 7 | |
lstat64("/tmp/foo.rb", {st_mode=S_IFREG|0644, st_size=20, ...}) = 0 | |
bob:tmp $ echo "require './foo'" >> test.rb | |
bob:tmp $ strace -e trace=file ruby ./test.rb |& grep foo | |
open("/tmp/foo.rb", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 7 | |
open("/tmp/foo.rb", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 7 | |
lstat64("/tmp/foo.rb", {st_mode=S_IFREG|0644, st_size=20, ...}) = 0 | |
open("/tmp/foo.rb", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require './foo' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment