Move responsibility for copying argv[] array into ps_status.c, where it
Tom Lane <tgl@sss.pgh.pa.us>
Move responsibility for copying argv[] array into ps_status.c, where it logically belongs. Arrange to update the _NSGetArgv() copy of the argv pointer on Darwin. (It seems likely that other NeXT-derived platforms also have an _NSGetArgv() problem, but until we have some reports I'll just make this #ifdef __darwin__.)
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/main/main.c | modified | +27 −41 |
| src/backend/utils/misc/ps_status.c | modified | +52 −10 |
| src/include/utils/ps_status.h | modified | +2 −2 |