Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Nov 2010 09:06:59 +0000 (UTC)
From:      Alexander Leidinger <netchild@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/compat/linux linux_emul.c linux_emul.h linux_misc.c src/sys/kern kern_exit.c
Message-ID:  <201011220907.oAM97YbS001093@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help

netchild    2010-11-22 09:06:59 UTC

  FreeBSD src repository

  Modified files:
    sys/compat/linux     linux_emul.c linux_emul.h linux_misc.c 
    sys/kern             kern_exit.c 
  Log:
  SVN rev 215664 on 2010-11-22 09:06:59Z by netchild
  
  By using the 32-bit Linux version of Sun's Java Development Kit 1.6
  on FreeBSD (amd64), invocations of "javac" (or "java") eventually
  end with the output of "Killed" and exit code 137.
  
  This is caused by:
  1. After calling exec() in multithreaded linux program threads are not
     destroyed and continue running. They get killed after program being
     executed finishes.
  
  2. linux_exit_group doesn't return correct exit code when called not
     from group leader. Which happens regularly using sun jvm.
  
  The submitters fix this in a similar way to how NetBSD handles this.
  
  I took the PRs away from dchagin, who seems to be out of touch of
  this since a while (no response from him).
  
  The patches committed here are from [2], with some little modifications
  from me to the style.
  
  PR:             141439 [1], 144194 [2]
  Submitted by:   Stefan Schmidt <stefan.schmidt@stadtbuch.de>, gk
  Reviewed by:    rdivacky (in april 2010)
  MFC after:      5 days
  
  Revision  Changes    Path
  1.24      +38 -1     src/sys/compat/linux/linux_emul.c
  1.11      +5 -0      src/sys/compat/linux/linux_emul.h
  1.244     +10 -21    src/sys/compat/linux/linux_misc.c
  1.338     +2 -1      src/sys/kern/kern_exit.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011220907.oAM97YbS001093>