Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!ames!lll-winken!uunet!mcvax!unido!nixba!mike From: mike@nixba.UUCP (Mike Lyons) Newsgroups: comp.lang.c Subject: Re: modifying parent's environment, etc. Summary: ps and ps -f didn't agree Message-ID: <368@nixba.UUCP> Date: 27 Apr 89 13:59:20 GMT References: <2158@pur-phy> <1494@vsedev.VSE.COM> <8634@xanth.cs.odu.edu> <2674@buengc.BU.EDU> Organization: Nixdorf Computer GSfBA, Nuremberg, West Germany Lines: 18 > In article <8634@xanth.cs.odu.edu> kremer@cs.odu.edu (Lloyd Kremer) writes: > >Yes, in System V, writing to argv[] doesn't change ps's opinion of what the > >original args were. I tried the original program with the three strings that were repeatedly copied to argv[0]. I used *s[] = { "hello", "there", "people"}, and started the program with something like 'foo &'. ps always showed 'foo' in the column COMMAND, but a ps -f would show the three different strings, and combinations of *parts* of the strings like 'thople'. --- Michael D. Lyons phone: +49 911 6415 609 Nixdorf Computer AG fax: +49 911 6415 105 Geschaeftstelle fuer BA e-mail: mike@nixba.uucp Donaustrasse 36 D-8500 Nuernberg 60 Federal Republic of Germany