Bug 11165

Summary: [ibcs2] IBCS2 doesn't work correctly with PID_MAX 99999
Product: Base System Reporter: aef <aef>
Component: kernAssignee: freebsd-emulation (Nobody) <emulation>
Status: Closed DUPLICATE    
Severity: Affects Only Me CC: jpaetzel
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description aef 1999-04-16 13:20:00 UTC
ibcs2_pid_t have a short type.
if BSD_PID>32767 - possible ENOCHILD error in some SCO program

How-To-Repeat: Run any SCO program, displayed his PID
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2004-08-30 21:46:24 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-emulation

Looks like a problem in the emulation code.
Comment 2 julian 2004-08-31 19:33:46 UTC
No it's an inherrent problem..
pids inthese systems are a 16 bit word
they can not HOLD a PID > 16 bits..

I suggest adding a sysctl that keeps the new generated pids < 60000
as they were for years.. this is true also fo freebsd 1.x binaries
which had the same problem when run under new FreeBSDs.
Comment 3 Tim Robbins freebsd_committer freebsd_triage 2004-09-03 07:13:02 UTC
Following up to note that i386/39802 was closed as a duplicate of this PR.
Comment 4 Gerald Pfeifer freebsd_committer freebsd_triage 2004-11-22 11:03:52 UTC
Responsible Changed
From-To: freebsd-emulation->emulation

freebsd-emulation -> emulation (since the latter has nearly all reports for 
this list).  

http://www.freebsd.org/cgi/query-pr.cgi?pr=11165 

Adding to audit trail from followup to identical, closed, PR 39802:

Comment 5 Josh Paetzel freebsd_committer freebsd_triage 2017-06-29 00:59:51 UTC

*** This bug has been marked as a duplicate of bug 39802 ***