make sure to clean up ps process/shell

This commit is contained in:
Nathan Freitas 2014-08-05 06:14:27 -04:00
parent e3385ab137
commit 03b39eae7a
2 changed files with 4 additions and 0 deletions

View File

@ -36,6 +36,8 @@ public interface TorServiceConstants {
public final static String SHELL_CMD_KILL = "kill -9";
public final static String SHELL_CMD_RM = "rm";
public final static String SHELL_CMD_PS = "toolbox ps";
public final static String SHELL_CMD_PS_ALT = "ps";
//public final static String SHELL_CMD_PIDOF = "pidof";
public final static String SHELL_CMD_LINK = "ln -s";
public final static String SHELL_CMD_CP = "cp";

View File

@ -108,6 +108,8 @@ public class TorServiceUtils implements TorServiceConstants {
}
}
procPs.destroy();
return procId;
}