radareorg / ideas

4 stars 1 forks source link

Add updatable posix io backend #30

Open radare opened 9 years ago

radare commented 9 years ago

Check if the file has changed every time it performs a read in order to reopen the file. the correct way to do that is by using mmap, but this can be useful in other situations

XVilka commented 9 years ago

Something like fanotify under linux? Or this in windows?

ret2libc commented 4 years ago

Do we really want this magic to work behind? Can't we just have a "reload" command (i think we have something already) so the user can explicitly say when the updates should be considered.

ret2libc commented 4 years ago

This issue has been moved from radareorg/radare2 to radareorg/ideas as we are trying to clean our backlog and this issue has probably been created a long while ago. This is an effort to help contributors understand what are the actionable items they can work on, prioritize issues better and help users find active/duplicated issues more easily. If this is not an enhancement/improvement/general idea but a bug, feel free to ask for re-transfer to main repo. Thanks for your understanding and contribution with this issue.

trufae commented 4 years ago

vim have this magic, but checking everytime we show the prompt is a bit too much and will slowdown things too much, so maybe just having an option to behave like that disabled by default or using oo to reopen will be enough. im mainlyu thinking in the case yuou have multiple terminals opened editing the same file without using mmap:// to sync the contents.