mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-23 12:51:16 +00:00
Merge pull request #1027 from Catfriend1/master
Fix root startup of libsyncthing.so binary
This commit is contained in:
commit
e2659f8480
1 changed files with 2 additions and 0 deletions
|
@ -394,6 +394,8 @@ public class SyncthingRunnable implements Runnable {
|
||||||
// If we did not use exec, we would wait infinitely for the process to terminate (ret = process.waitFor(); in run()).
|
// If we did not use exec, we would wait infinitely for the process to terminate (ret = process.waitFor(); in run()).
|
||||||
// With exec the whole process terminates when Syncthing exits.
|
// With exec the whole process terminates when Syncthing exits.
|
||||||
suOut.writeBytes("exec " + TextUtils.join(" ", mCommand) + "\n");
|
suOut.writeBytes("exec " + TextUtils.join(" ", mCommand) + "\n");
|
||||||
|
// suOut.flush has to be called to fix issue - #1005 Endless loader after enabling "Superuser mode"
|
||||||
|
suOut.flush();
|
||||||
return process;
|
return process;
|
||||||
} else {
|
} else {
|
||||||
ProcessBuilder pb = new ProcessBuilder(mCommand);
|
ProcessBuilder pb = new ProcessBuilder(mCommand);
|
||||||
|
|
Loading…
Reference in a new issue