diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2005-12-25 00:36:30 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2005-12-25 00:36:30 +0000 |
commit | 9b5e125a4cef5dc6ac12fd371843ff0817a1e4d6 (patch) | |
tree | 389a5d938447a6a52c4f0563ed29fd59daf910a8 | |
parent | b8340c5db350bb53e31a176f88210e7b497497ff (diff) |
if the start routine returns (never happens), call the right threxit syscall
-rw-r--r-- | lib/librthread/arch/amd64/rfork_thread.S | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/librthread/arch/amd64/rfork_thread.S b/lib/librthread/arch/amd64/rfork_thread.S index faec9b233c7..376b6496c06 100644 --- a/lib/librthread/arch/amd64/rfork_thread.S +++ b/lib/librthread/arch/amd64/rfork_thread.S @@ -1,4 +1,4 @@ -/* $OpenBSD: rfork_thread.S,v 1.1 2005/12/03 18:16:19 tedu Exp $ */ +/* $OpenBSD: rfork_thread.S,v 1.2 2005/12/25 00:36:29 tedu Exp $ */ /*- * Copyright (c) 2000 Peter Wemm <peter@FreeBSD.org> * Copyright (c) 2003 Alan L. Cox <alc@cs.rice.edu> @@ -83,11 +83,7 @@ ENTRY(rfork_thread) /* * Exit system call */ -#ifdef SYS_exit - movq $SYS_exit, %rax -#else - movq $SYS_sys_exit, %rax -#endif + movq $SYS_threxit, %rax int $0x80 /* |