Skip to content

Commit

Permalink
* sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Don't return early
Browse files Browse the repository at this point in the history
	after an RPC succeeds.
  • Loading branch information
Roland McGrath committed Oct 24, 2004
1 parent 82d2472 commit 02d6ab9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
2004-10-23 Roland McGrath <roland@frob.com>

* sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Don't return early
after an RPC succeeds.

* sysdeps/vax, sysdeps/unix/bsd/vax: Directories and all files removed.
These are now in the ports repository.
* sysdeps/tahoe, sysdeps/unix/bsd/tahoe: Likewise.
Expand Down
11 changes: 7 additions & 4 deletions sysdeps/mach/hurd/i386/tls.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,10 @@ _hurd_tls_init (tcbhead_t *tcb, int secondcall)
sel = 0x27;
err = __i386_set_ldt (tcb->self, sel, &desc, 1);
assert_perror (err);
return "i386_set_ldt failed";
if (err)
return "i386_set_ldt failed";
}
else
else if (err)
{
assert_perror (err); /* Separate from above with different line #. */
return "i386_set_gdt failed";
Expand All @@ -95,13 +96,15 @@ _hurd_tls_init (tcbhead_t *tcb, int secondcall)
{
error_t err = __i386_set_ldt (tcb->self, sel, &desc, 1);
assert_perror (err);
return "i386_set_ldt failed";
if (err)
return "i386_set_ldt failed";
}
else
{
error_t err = __i386_set_gdt (tcb->self, &sel, desc);
assert_perror (err);
return "i386_set_gdt failed";
if (err)
return "i386_set_gdt failed";
}
}

Expand Down

0 comments on commit 02d6ab9

Please sign in to comment.