gpiosim: get the process name using prctl()
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 6 Dec 2022 13:23:54 +0000 (14:23 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Fri, 9 Dec 2022 09:06:53 +0000 (10:06 +0100)
commit3006d924e4561e5f12e122038a5e4e953260e6f2
tree20811883ed3733fa6c087c357ee63f271a2d1272
parent141b91774935fd8fc234b091f3e6daf940782698
gpiosim: get the process name using prctl()

program_invocation_short_name is set once at the program's start. If we
change the process name using prctl(), we need to retrieve it using the
same system call as program_invocation_short_name will not be updated.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
configure.ac
tests/gpiosim/gpiosim.c