changeset 5509:5cf306bf4058 draft

Just give up with setproctitle on Illumos Their ps tools go out of their way to only show how it was launched :/
author Roy Marples <roy@marples.name>
date Sat, 10 Oct 2020 13:32:23 +0300
parents 1dd90b630d03
children b9a2c4481c2e
files configure
diffstat 1 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Fri Oct 09 20:38:48 2020 +0100
+++ b/configure	Sat Oct 10 13:32:23 2020 +0300
@@ -968,8 +968,17 @@
 	rm -f _setproctitle.c _setproctitle
 fi
 if [ "$SETPROCTITLE" = no ]; then
-	echo "COMPAT_SRCS+=	compat/setproctitle.c" >>$CONFIG_MK
-	echo "#include			\"compat/setproctitle.h\"" >>$CONFIG_H
+	case "$OS" in
+	solaris*|sunos*)
+		echo "$OS has no support for setting process title"
+		echo "#define	setproctitle(...)" >>$CONFIG_H
+		;;
+	*)
+		echo "COMPAT_SRCS+=	compat/setproctitle.c" >>$CONFIG_MK
+		echo "#include			\"compat/setproctitle.h\"" \
+			>>$CONFIG_H
+		;;
+	esac
 fi
 
 if [ -z "$STRLCPY" ]; then