Thanks for the info. It is much easier to just use an existing mechanism --
I will toss my patch -- at least it was fun to write.
I was suprised to find that the linux ps output could be changed
via what appears at first to be the same mechanism that is used on AIX
(writing into argv[0]).
The suprise was because our (db2) AIX code that we use to change the cmdline
didn't cause the ps output to change, and I had tried it on Linux before
writing my proc based version.
The difference seems to be that on AIX overwriting argv[0] (just the pointer)
is enough to change the ps output, and on Linux a strcpy into argv[0] seems to
be required.
Peeter
-- Peeter Joot peeterj@ca.ibm.com IBM DB2 Operating System Services 416-448-3359 (tie line 778)- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/