home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / bsd / 10546 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  1.4 KB

  1. Path: sparky!uunet!pipex!bnr.co.uk!uknet!mcsun!sun4nl!relay.philips.nl!cnplss5!rooij
  2. From: rooij@mozart.cft.philips.nl (G. van Rooij)
  3. Newsgroups: comp.unix.bsd
  4. Subject: Re: Patch to allow ps(1) to identify console-controlled processes
  5. Message-ID: <1992Dec22.122813.28550@cnplss5.cnps.philips.nl>
  6. Date: 22 Dec 92 12:28:13 GMT
  7. References: <1992Dec21.154652.28356@rtf.bt.co.uk>
  8. Sender: news@cnplss5.cnps.philips.nl (USENET News System)
  9. Organization: Philips Communications & Processing Services, Eindhoven
  10. Lines: 19
  11. Nntp-Posting-Host: bashful
  12.  
  13. duplain@rtf.bt.co.uk (Andy Duplain) writes:
  14.  
  15.  
  16. >    Hi, here is a hack to allow ps(1) to see processes that have the
  17. >    console as there controlling tty.  I don't understand why there
  18. >    is both a console and a PC console device, but basically all
  19. >    processes that are controlled from the console have the major device
  20. >    number of 12, while /dev/console has a major device number of 0.  An
  21. >    alternative solution _could_ be to add a filesystem node for the
  22. >    PC console device and then run dev_mkdb(8) again (having changed the
  23. >    definition of _PATH_CONSOLE from /dev/console to /dev/whatever).
  24.  
  25. I ported ps a lonmg time ago (I think it was in version 0.0) but from
  26. what I remember, there was a much simpler "hack": If I remember well
  27. theer was a define (HP300 or so, it was definitely something with HP)
  28. that also fixed a wrong behaviour towards console entries. When you
  29. define this ps's output also is okay.
  30.  
  31. -Guido
  32.