home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / aix / 8060 < prev    next >
Encoding:
Text File  |  1992-07-22  |  1.7 KB  |  50 lines

  1. Newsgroups: bull.sys.aix,comp.unix.aix
  2. Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!think.com!news.bbn.com!mips2!thed.uk22.bull.com!kelvin
  3. From: kelvin@thed.uk22.bull.com (Kelvin J. Hill)
  4. Subject: Re: Changing name associated with a process
  5. Organization: Bull HN Informations Systems Inc.
  6. Date: 22 Jul 92 15:36:52 GMT
  7. Message-ID: <kelvin.711819412@thed.uk22.bull.com>
  8. References: <mwarren.711724488@rws1> <mwarren.711816903@rws1>
  9. Sender: news@mips2.ma30.bull.com (Usenet News Manager)
  10. Lines: 38
  11.  
  12. In <mwarren.711816903@rws1> mwarren@rws1.ma30.bull.com (Mark Warren) writes:
  13.  
  14. >A few people replied to me, and the answer is even easier than BSD.
  15. >The following program does exactly what it appears to do:
  16.  
  17. >main(ac, av)
  18. >int     ac;
  19. >char     *av[];
  20. >{
  21. >    av[0] = "new name";
  22. >    sleep(60);
  23. >}
  24.  
  25. >If you run this in the background, and type "ps", it sez:
  26.  
  27. >   PID    TTY  TIME CMD
  28. > 16753  pts/0  0:00 ps
  29. > 19814  pts/0  0:00 -ksh
  30. > 20848  pts/0  0:00 new name
  31.  
  32. >I'm surprised that this works.  Will it continue to work in later
  33. >revisions of BOS/X?
  34. >--
  35.  
  36. Frankly, so am I! On the DPX2/500 it does not update the global name but only
  37. the programs private copy of the name pointer. I suspect this is a blatant
  38. violation of the systems security....   Does anyone elses 'ps' see the new
  39. name value or is it private to this process group?
  40.  
  41. Kelvin.
  42.  
  43. > == Mark Warren                      Bull HN Information Systems Inc. ==
  44. > == (508) 294-3171 (FAX 294-3705)    300 Concord Road   MA30/MS833A   ==
  45. > == M.Warren@bull.com                Billerica, MA 01821              ==
  46. --
  47. Kelvin J. Hill - BULL HN Information System Ltd, Hounslow, England, UK.
  48. Internet - kelvin@thed.uk22.bull.com   | UUCP - kelvin@cix.compulink.co.uk
  49.    ""      kelvin@kelvin.uk22.bull.com | AMPRnet - kelvin@g1emm.ampr.org
  50.