diff options
author | emaste <emaste@FreeBSD.org> | 2016-04-12 22:59:20 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2016-04-12 22:59:20 +0000 |
commit | 628aed7218740590ae9043da02fdc85cee84dfe3 (patch) | |
tree | 4a15e4b09ad5606f2939448db255fa217097af87 /lib/libc/gen | |
parent | 64332fef7de27c50f6522add770ceda556bdb4d6 (diff) | |
download | FreeBSD-src-628aed7218740590ae9043da02fdc85cee84dfe3.zip FreeBSD-src-628aed7218740590ae9043da02fdc85cee84dfe3.tar.gz |
Remove PS_STRINGS fallback from setproctitle
In r103767 the kern.ps_strings sysctl was added as the preferred way to
locate the ps_strings struct and is available in any FreeBSD release
supported within the last decade.
Reviewed by: kib
Diffstat (limited to 'lib/libc/gen')
-rw-r--r-- | lib/libc/gen/setproctitle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/gen/setproctitle.c b/lib/libc/gen/setproctitle.c index 9dff328..2cde895 100644 --- a/lib/libc/gen/setproctitle.c +++ b/lib/libc/gen/setproctitle.c @@ -134,7 +134,7 @@ setproctitle(const char *fmt, ...) len = sizeof(ul_ps_strings); if (sysctlbyname("kern.ps_strings", &ul_ps_strings, &len, NULL, 0) == -1) - ul_ps_strings = PS_STRINGS; + return; ps_strings = (struct ps_strings *)ul_ps_strings; } |