Land #10309, PID check for self-migrate
parent
ba3fa4bf91
commit
fe13b00d84
|
@ -1114,6 +1114,11 @@ class Console::CommandDispatcher::Core
|
|||
end
|
||||
end
|
||||
|
||||
if pid == server.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