fix ArgumentError in everything that closes a process handle
git-svn-id: file:///home/svn/framework3/trunk@10776 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
27d2761ec0
commit
2dbf731946
|
@ -309,7 +309,7 @@ class Process < Rex::Post::Process
|
||||||
#
|
#
|
||||||
# Closes the handle to the process that was opened.
|
# Closes the handle to the process that was opened.
|
||||||
#
|
#
|
||||||
def self.close(client,handle)
|
def self.close(client, handle)
|
||||||
request = Packet.create_request('stdapi_sys_process_close')
|
request = Packet.create_request('stdapi_sys_process_close')
|
||||||
request.add_tlv(TLV_TYPE_HANDLE, handle)
|
request.add_tlv(TLV_TYPE_HANDLE, handle)
|
||||||
response = client.send_request(request)
|
response = client.send_request(request)
|
||||||
|
@ -320,7 +320,7 @@ class Process < Rex::Post::Process
|
||||||
#
|
#
|
||||||
# Instance method
|
# Instance method
|
||||||
#
|
#
|
||||||
def close(handle)
|
def close(handle=self.handle)
|
||||||
self.class.close(self.client, handle)
|
self.class.close(self.client, handle)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -167,7 +167,7 @@ class Thread < Rex::Post::Thread
|
||||||
end
|
end
|
||||||
|
|
||||||
# Instance method
|
# Instance method
|
||||||
def self.close
|
def close
|
||||||
self.class.close(self.process.client, self.handle)
|
self.class.close(self.process.client, self.handle)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue