home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / linux / 25688 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.1 KB  |  37 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!howland.reston.ans.net!sol.ctr.columbia.edu!ira.uka.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!sun4nl!dutrun!donau!liberator.et.tudelft.nl!wolff
  3. From: wolff@liberator.et.tudelft.nl (Rogier Wolff)
  4. Subject: Re: max pid
  5. Message-ID: <1993Jan26.172438.4198@donau.et.tudelft.nl>
  6. Sender: news@donau.et.tudelft.nl (UseNet News System)
  7. Nntp-Posting-Host: liberator.et.tudelft.nl
  8. Organization: Delft University of Technology, Dept. of Electrical Engineering
  9. References: <1993Jan20.012515.4992@gnusys.GUN.de>
  10. Date: Tue, 26 Jan 1993 17:24:38 GMT
  11. Lines: 24
  12.  
  13. kg@gnusys.GUN.de (Klaus Guhr) writes:
  14.  
  15. >what is the max pid in Linux 0.99.pl3 ?
  16.  
  17. Standard Unix is 30000. (not 32768.) Linux uses 65365 or something like
  18. that.  This is bad.
  19.  
  20. int main ()
  21. {
  22. short pid;
  23.  
  24. pid = fork ();
  25. if (pid < 0)
  26.    <error>;
  27. if (pid = 0)
  28.    <child>;
  29. else
  30.    <parent>;
  31. }
  32.                     
  33.                     Roger.
  34. -- 
  35. ****   a 486 in V86 mode is like a VW buggy with a 6 litre V12 motor.  ****
  36. EMail:  wolff@duteca.et.tudelft.nl   ** Tel  +31-15-783643 or +31-15-142371
  37.