gprofng: Use execvp instead of execv
authorVladimir Mezentsev <vladimir.mezentsev@oracle.com>
Wed, 16 Aug 2023 02:45:12 +0000 (19:45 -0700)
committerVladimir Mezentsev <vladimir.mezentsev@oracle.com>
Thu, 17 Aug 2023 20:15:10 +0000 (13:15 -0700)
commit1f572864da9682a7d423477b1795b7dacc1f11da
treed47732322f7172113b221c4e5a298374eec6ed29
parentb080fe54fb3414b488b8ef323c6c50def061f918
gprofng: Use execvp instead of execv

gp-display-gui (https://savannah.gnu.org/projects/gprofng-gui)
can be installed in a different directory.
In this case, $PATH is used to look up gp-display-text.
execv() does not use $PATH to find the executable.

gprofng/ChangeLog
2023-08-15  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>

* src/gp-display-text.cc (reexec): Use execvp instead of execv.
gprofng/src/gp-display-text.cc