Skip to content

Commit

Permalink
Just give up with setproctitle on Illumos
Browse files Browse the repository at this point in the history
Their ps tools go out of their way to only show how it was launched :/
  • Loading branch information
rsmarples committed Oct 10, 2020
1 parent 4117f7b commit f02f75d
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions configure
Expand Up @@ -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
Expand Down

0 comments on commit f02f75d

Please sign in to comment.