|
|
@ -77,18 +77,6 @@ XXX - service for start (startForeground, fork) and stop (kill, stopService)
|
|
|
|
XXX - logging facility instead of stdout/stderr
|
|
|
|
XXX - logging facility instead of stdout/stderr
|
|
|
|
XXX - disable utmp/wtmp
|
|
|
|
XXX - disable utmp/wtmp
|
|
|
|
|
|
|
|
|
|
|
|
final int shellPid = pids[0];
|
|
|
|
|
|
|
|
Runnable exitWatcher = new Runnable() {
|
|
|
|
|
|
|
|
public void run() {
|
|
|
|
|
|
|
|
Exec.waitFor(shellPid);
|
|
|
|
|
|
|
|
bridge.dispatchDisconnect(false);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
Thread exitWatcherThread = new Thread(exitWatcher);
|
|
|
|
|
|
|
|
exitWatcherThread.setName("LocalExitWatcher");
|
|
|
|
|
|
|
|
exitWatcherThread.setDaemon(true);
|
|
|
|
|
|
|
|
exitWatcherThread.start();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
XXX - scp
|
|
|
|
XXX - scp
|
|
|
|
XXX - zlib
|
|
|
|
XXX - zlib
|
|
|
|
XXX - rsync
|
|
|
|
XXX - rsync
|
|
|
|