Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> Shouldn't the second progname be argv[0] or something else that contains
> the full path?
argv[0] doesn't necessarily contain the full path. Is it worth calling
find_my_exec() here to produce an absolute path? Possibly...
regards, tom lane