Refix ptrace-write problem