]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Just give up with setproctitle on Illumos
authorRoy Marples <roy@marples.name>
Sat, 10 Oct 2020 10:32:23 +0000 (13:32 +0300)
committerRoy Marples <roy@marples.name>
Sat, 10 Oct 2020 10:32:23 +0000 (13:32 +0300)
Their ps tools go out of their way to only show how it was launched :/

configure

index 60381cf27d7ca6223108c98ccd7b57b39c148835..72b133c1617be00af284927fd2f4e5d61f428119 100755 (executable)
--- a/configure
+++ b/configure
@@ -968,8 +968,17 @@ EOF
        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