Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Apr 2008 08:12:36 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern kern_proc.c
Message-ID:  <200804110812.m3B8CaXQ064025@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
rwatson     2008-04-11 08:12:36 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_7)
    sys/kern             kern_proc.c 
  Log:
  Merge kern_proc.c:1.259 from HEAD to RELENG_7:
  
    Return ESRCH when a kernel stack is queried on a process in execve() --
    p_candebug() will return EAGAIN which, if the other process never
    leaves execve(), will result in the sysctl spinning and never returning
    to userspace.  Processes should always eventually leave execve(), but
    spinning in kernel while we wait is bad for countless reasons, and
    particularly harmful if execve() itself is deadlocked.
  
    Possibly we should return another error, or return a marker indicating
    the thread is in execve() so it can be reported that way in userspace.
  
    Reported by:    kris
  
  Revision   Changes    Path
  1.252.2.7  +2 -1      src/sys/kern/kern_proc.c



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