From 8bdbc6149709e4c5e9abfe9a02cdc5101114901a Mon Sep 17 00:00:00 2001 From: Han Pingtian Date: Sat, 15 May 2021 14:23:28 -0700 Subject: 33465: use prctl() for "jobs -Z" where available Bart apologizes for waiting 7 years to apply this change. --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index e2ddf0e55..dd0d3ffac 100644 --- a/configure.ac +++ b/configure.ac @@ -2065,6 +2065,12 @@ AH_TEMPLATE([HAVE_SETPROCTITLE], AC_CHECK_FUNC(setproctitle,AC_DEFINE(HAVE_SETPROCTITLE), AC_SEARCH_LIBS(setproctitle,util,AC_DEFINE(HAVE_SETPROCTITLE))) +dnl CHECK FOR prctl() FOR jobs -Z / ARGV0 when checking with ps -e +AH_TEMPLATE([HAVE_PRCTL], +[Define to 1 if the system supports `prctl' to change process name]) +AC_CHECK_FUNC(prctl,AC_DEFINE(HAVE_PRCTL), +AC_SEARCH_LIBS(prctl,c,AC_DEFINE(HAVE_PRCTL))) + dnl ------------- dnl CHECK FOR NIS dnl ------------- -- cgit 1.4.1