• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Forever going deeper into \sys folder?

jfbaro

Member
Jan 7, 2010
62
0
Hi,

I have tested this behaviour on both a N1 and the emulator. Could anyone tell me if that is a problem? I don't think it would go forever. How can I avoid the recursive code going forever? What is happening?

If you use any file browser/manager and starting going into /sys/devices/w1 bus master/subsystem/devices/w1 bus master/subsystem it will go inner forever, repeating that pattern devices/w1 bus master/subsystem/ forever.

So when I run a recursive search it keeps going deeper and deeper and seems never to finish.

What is happening, how to avoid this behaviour?

I tried different file manager and they all seems to be going forever into these folders, although when I do a search through Astro it doesn't seem to get stuck with this loop (It seems to ignore the /sys folder, but I am not sure if this happens also in any other folder).

Regards.
 
I haven't checked that, but it sounds like a circular link.

You know unix-style links? Sort of like Windows-style shortcuts, but they look a lot more like the actual destination instead of just being a shortcut file. So, if you have one folder inside another, and you create a link to the outer folder within the inner, you would end up with something you could navigate as you describe. In that case, there is no end, it will go on forever (or until you run out of stack memory).
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones