Browse Source

* exit_group isn't available on older linuxes, if exit_group fails, use exit

git-svn-id: trunk@1299 -
florian 20 years ago
parent
commit
91be287119
1 changed files with 3 additions and 0 deletions
  1. 3 0
      rtl/linux/i386/prt0.as

+ 3 - 0
rtl/linux/i386/prt0.as

@@ -73,6 +73,9 @@ _haltproc2:             # GAS <= 2.15 bug: generates larger jump if a label is e
 	movl    $252,%eax                /* exit_group */
 	movl    $252,%eax                /* exit_group */
         movzwl  operatingsystem_result,%ebx
         movzwl  operatingsystem_result,%ebx
         int     $0x80
         int     $0x80
+        movl    $1,%eax                /* exit */
+        movzwl  operatingsystem_result,%ebx
+        int     $0x80
         jmp     _haltproc2
         jmp     _haltproc2
 
 
 .data
 .data