Simple fix for #1013 and the migration permission error message.

git-svn-id: file:///home/svn/framework3/trunk@8714 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Stephen Fewer 2010-03-04 19:31:36 +00:00
parent 0900314a15
commit a44358df67
1 changed files with 4 additions and 4 deletions

View File

@ -184,17 +184,17 @@ class ClientCore < Extension
# We cant migrate into a process that does not exist. # We cant migrate into a process that does not exist.
if( process == nil ) if( process == nil )
raise ArgumentError, "Cannot migrate into non existant process", caller raise RuntimeError, "Cannot migrate into non existant process", caller
end end
# We cant migrate into a process that we are unable to open # We cant migrate into a process that we are unable to open
if( process['arch'] == nil ) if( process['arch'] == nil or process['arch'].empty? )
raise ArgumentError, "Cannot migrate into this process (insufficient privileges)", caller raise RuntimeError, "Cannot migrate into this process (insufficient privileges)", caller
end end
# And we also cant migrate into our own current process... # And we also cant migrate into our own current process...
if( process['pid'] == client.sys.process.getpid ) if( process['pid'] == client.sys.process.getpid )
raise ArgumentError, "Cannot migrate into current process", caller raise RuntimeError, "Cannot migrate into current process", caller
end end
# Create a new payload stub # Create a new payload stub