Bug 58710

Summary: killpg(2) contains an error regarding sending SIGCONT
Product: Documentation Reporter: Ryan Younce <ryany>
Component: Books & ArticlesAssignee: freebsd-doc (Nobody) <doc>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Ryan Younce 2003-10-30 08:40:08 UTC
	This is akin to PR docs/58413.

	The killpg(2) manual page in /usr/src/lib/libc/compat-43/killpg.2
	has the same error the kill(2) manpage had before the commit for
	the aforementioned PR, specifically the text:

	"As a single special case the continue signal SIGCONT may be sent
	to any process that is a descendant of the current process."

	This is incorrect:  as in the case for kill(2), SIGCONT may be
	sent, regardless of credentials, to any process in the same
	session; it is neither sufficient nor necessary for the recipient
	to be a descendent if user IDs differ.

	Since killpg() relies on kill(), which relies on killpg1() in
	/sys/kern/kern_sig.c, which relies on p_cansignal() in
	/sys/kern/kern_prot.c, the semantics are the same.  This has 
	also been tested.

Fix: 

Change sentence in question to:

	"As a single special case the continue signal SIGCONT may be sent
	to any process with the same session ID as the caller.
How-To-Repeat: 
	man 2 killpg
Comment 1 dfilter service freebsd_committer freebsd_triage 2006-10-10 12:37:59 UTC
maxim       2006-10-10 11:37:41 UTC

  FreeBSD src repository

  Modified files:
    lib/libc/compat-43   killpg.2 
  Log:
  o From kern_prot.c::p_cansignal():
  
  UNIX signalling semantics require that processes in the same
  session always be able to deliver SIGCONT to one another,
  overriding the remaining protections.
  
  Fix SIGCONT special case description similar to rev. 1.22 kill.2.
  
  PR:             docs/58710
  Submitted by:   Ryan Younce
  MFC after:      2 weeks
  
  Revision  Changes    Path
  1.13      +2 -2      src/lib/libc/compat-43/killpg.2
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 2 Maxim Konovalov freebsd_committer freebsd_triage 2006-10-10 12:38:39 UTC
State Changed
From-To: open->patched

Fixed in HEAD.  Thanks and sorry it took so long.
Comment 3 Maxim Konovalov freebsd_committer freebsd_triage 2006-10-29 16:43:59 UTC
State Changed
From-To: patched->closed

Merged to RELENG_6.