show error if server.pid == pid
This PR adds changes to catch error when `server.pid` and `pid` are the sameGSoC/Meterpreter_Web_Console
parent
4e5ad576b2
commit
71e25f1494
|
@ -1113,7 +1113,11 @@ class Console::CommandDispatcher::Core
|
|||
print_status("#{existing_relays.length} TCP relay(s) removed.")
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
if server.pid == pid
|
||||
print_error("Process already running at PID #{pid}")
|
||||
return
|
||||
end
|
||||
server ? print_status("Migrating from #{server.pid} to #{pid}...") : print_status("Migrating to #{pid}")
|
||||
|
||||
# Do this thang.
|
||||
|
|
Loading…
Reference in New Issue