sync icon indicating copy to clipboard operation
sync copied to clipboard

Reloading system modules

Open maximvl opened this issue 11 years ago • 2 comments
trafficstars

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 avatar Apr 26 '14 14:04 maximvl

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.

maximvl avatar Apr 26 '14 15:04 maximvl

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/rustyio/sync/issues/31#issuecomment-41471417 .

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

choptastic avatar Apr 28 '14 23:04 choptastic