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