node/lib/metasm/metasm/os/linux.rb
def attach(pid, do_attach=:attach)
		pt = PTrace.new(pid, do_attach)
		set_context(pt.pid, pt.pid)	# swapout+init_newpid
		log "attached #@pid"
		list_threads.each { |tid| attach_thread(tid) if tid != @pid }
		set_tid @pid
	end
# attach to a running process and all its threads
attach to a running process and all its threads
attach to a running process and all its threads
def attach(pid, do_attach=:attach)
		pt = PTrace.new(pid, do_attach)
		set_context(pt.pid, pt.pid)	
		log "attached #@pid"
		list_threads.each { |tid| attach_thread(tid) if tid != @pid }
		set_tid @pid
	end
def attach ( pid , do_attach = :attach ) pt = PTrace . new ( pid , do_attach ) set_context ( pt . pid , pt . pid ) log "attached #@pid" list_threads . each { | tid | attach_thread ( tid ) if tid != @pid } set_tid @pid end
attach to a running process and all its threads
attach to a running process and all its threads
# swapout+init_newpid
pid
do_attach