From 9b5e125a4cef5dc6ac12fd371843ff0817a1e4d6 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Sun, 25 Dec 2005 00:36:30 +0000 Subject: if the start routine returns (never happens), call the right threxit syscall --- lib/librthread/arch/amd64/rfork_thread.S | 8 ++------ 1 file 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 * Copyright (c) 2003 Alan L. Cox @@ -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 /* -- cgit v1.2.3