notify user when asking for output from a dead process

This commit is contained in:
Aidan Hahn 2019-05-25 21:49:58 -07:00
parent 269e944252
commit c10988bfde
No known key found for this signature in database
GPG key ID: 327711E983899316

View file

@ -103,6 +103,10 @@ class ProcessController {
* gets output from process * gets output from process
*/ */
public String getOutput(int lines) { public String getOutput(int lines) {
if(this.killedManually) {
return "[-] SERVER: Process has already been killed by a JobServ client!";
}
String output = ""; String output = "";
for (int i = 0; i < lines; i++) { for (int i = 0; i < lines; i++) {
String newLine = null; String newLine = null;