diff options
| author | Roy Marples <roy@marples.name> | 2020-10-10 13:32:23 +0300 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2020-10-10 13:32:23 +0300 |
| commit | 8366c54b425ca9cb77db2a24d96a120139d8cbe6 (patch) | |
| tree | ced6598e28e501bb0fae09f4f931fceb623d7090 | |
| parent | 2e4aeaf7d82decbdefd34e0a7333c4ad21dd6cfe (diff) | |
| download | dhcpcd-8366c54b425ca9cb77db2a24d96a120139d8cbe6.tar.xz | |
Just give up with setproctitle on Illumos
Their ps tools go out of their way to only show how it was launched :/
| -rwxr-xr-x | configure | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -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 |
