Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reloading system modules #31

Open
maximvl opened this issue Apr 26, 2014 · 2 comments
Open

Reloading system modules #31

maximvl opened this issue Apr 26, 2014 · 2 comments
Milestone

Comments

@maximvl
Copy link
Contributor

maximvl commented Apr 26, 2014

Today I found really weird issue - I watched some code in erlang.erl and looks like system updated its access time, sync reloaded it and I found apply function going to infinitive loop on each call, because apply is defined there as

apply(Mod, Name, Args) ->
    erlang:apply(Mod, Name, Args).

I'm not sure how to fix this, there could be more modules working is same way, and when they are reloaded by sync in background such mysterious things will happen.

@maximvl
Copy link
Contributor Author

maximvl commented Apr 26, 2014

Reloading happens at https://github.com/rustyio/sync/blob/master/src/sync_scanner.erl#L300.
btw https://github.com/rustyio/sync/blob/master/src/sync_options.erl#L49 goes to infinitive loop too, there should be clause for filesystem root.

@choptastic
Copy link
Collaborator

Hi Maxim,

Did my recommendation in IRC (to use the excluded_modules option) work?

On Sat, Apr 26, 2014 at 10:22 AM, Maxim V [email protected] wrote:

Reloading happens at
https://github.com/rustyio/sync/blob/master/src/sync_scanner.erl#L300.
btw sync_options:get_options goes to infinitive loop too, there should be
clause for filesystem root.


Reply to this email directly or view it on GitHubhttps://github.com//issues/31#issuecomment-41471417
.

Jesse Gumm
Owner, Sigma Star Systems
414.940.4866 || sigma-star.com || @jessegumm

@choptastic choptastic added this to the 1.0.0 milestone Oct 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants