modifying parent's environment, etc.
Mike Lyons
mike at nixba.UUCP
Thu Apr 27 23:59:20 AEST 1989
> In article <8634 at xanth.cs.odu.edu> kremer at 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 at nixba.uucp
Donaustrasse 36
D-8500 Nuernberg 60
Federal Republic of Germany
More information about the Comp.lang.c
mailing list