android_terminal/jni
Jack Palevich 86129f51ea Revert "Close all unneeded file descriptors before exec."
It turns out that some of the open file descriptors were pointing to
resources that were used by the C runtime. So closing them broke some
C runtime methods.

sven-ola writes:

Sorry to write so, but this change has a side effect: no access to Android properties from within the terminal. Test: "/system/bin/getprop" should show something, maybe compare with ConnectBot/Local. No access to properties means: the Debian-Kit app's "Put-current-DNS-setting-to-etc-resolv.conf" daemon fails. Workaround AFICT: do not close file descriptors pointing to /dev/ashmem (props working via shared memory).

I'm willing to consider an updated version of this patch that tries to
be more selective about which descriptors to close. However, I am not
sure what to do about new descriptors that are added to the Android runtime
in future versions of Android -- how will we know whether to close them or
not?

This reverts commit 0e9b7f0cfd.
2014-03-02 06:27:17 -08:00
..
Android.mk Bump shared library ABI 2012-04-30 18:44:22 -07:00
Application.mk Add MIPS support. (Untested). 2012-05-06 10:55:14 -07:00
common.cpp Add native code implementation of File.canExecute() for API < 9 2012-04-30 18:44:21 -07:00
common.h Refactor JNI code 2012-04-30 18:44:21 -07:00
fileCompat.cpp Add native code implementation of File.canExecute() for API < 9 2012-04-30 18:44:21 -07:00
fileCompat.h Add native code implementation of File.canExecute() for API < 9 2012-04-30 18:44:21 -07:00
termExec.cpp Revert "Close all unneeded file descriptors before exec." 2014-03-02 06:27:17 -08:00
termExec.h Refactor JNI code 2012-04-30 18:44:21 -07:00