From: Roy Marples Date: Sat, 10 Oct 2020 10:32:23 +0000 (+0300) Subject: Just give up with setproctitle on Illumos X-Git-Tag: v9.3.1~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8366c54b425ca9cb77db2a24d96a120139d8cbe6;p=thirdparty%2Fdhcpcd.git Just give up with setproctitle on Illumos Their ps tools go out of their way to only show how it was launched :/ --- diff --git a/configure b/configure index 60381cf2..72b133c1 100755 --- 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