#
336449 |
|
18-Jul-2018 |
kib |
MFC r335939, r336088: Add setproctitle_fast(3) for frequent callers.
|
#
309275 |
|
28-Nov-2016 |
emaste |
MFC r309006: remove unnecessary vm includes from setproctitle
vm headers were needed only for the PS_STRINGS fallback, which was removed in r297888.
|
#
302408 |
|
07-Jul-2016 |
gjb |
Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle. Prune svn:mergeinfo from the new branch, as nothing has been merged here.
Additional commits post-branch will follow.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
298226 |
|
18-Apr-2016 |
avos |
libc: do not include <sys/types.h> where <sys/param.h> was already included
According to style(9): > normally, include <sys/types.h> OR <sys/param.h>, but not both. (<sys/param.h> already includes <sys/types.h> when LOCORE is not defined).
|
#
297888 |
|
12-Apr-2016 |
emaste |
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
|
#
281763 |
|
20-Apr-2015 |
kib |
Remove code to support the top of the stack layout for FreeBSD 1.x/2.x kernel, but keep explanation of the old ps_strings structure to make it clear what sanity check tries to accomplish.
Noted by: Oliver Pinter <oliver.pinter@hardenedbsd.org> Sponsored by: The FreeBSD Foundation MFC after: 2 weeks
|
#
117102 |
|
01-Jul-2003 |
alfred |
Don't segfault if setproctitle(3) is called with NULL initially. The old buffer was not being initialized and a later str*() op on it would cause a crash if it wasn't initialized by a previous call to setproctitle(3) with an actual string.
Noticed by: Ashley Penney <ashp@unloved.org>
|
#
108163 |
|
21-Dec-2002 |
bbraun |
Reduce libc's memory footprint by lazily allocating memory used internally by setproctitle().
Reviewed by: jkh
|
#
93399 |
|
29-Mar-2002 |
markm |
Do not use __progname directly (except in [gs]etprogname(3)). Also, make an internal _getprogname() that is used only inside libc. For libc, getprogname(3) is a weak symbol in case a function of the same name is defined in userland.
|
#
90039 |
|
31-Jan-2002 |
obrien |
Fix SCM ID's.
|
#
69560 |
|
03-Dec-2000 |
jdp |
When recording the original arguments, stop short if we encounter a NULL argument. Some programs change the contents of the argv array, typically to remove some special arguments. They shorten argv by storing a NULL where an argument pointer used to be. Such programs core dumped if they called setproctitle(), because it would try to apply strlen() to a NULL pointer.
|
#
69558 |
|
03-Dec-2000 |
jdp |
When recording the original arguments, don't (ab)use "nargc" for iterating over the arguments. Doing so wipes out the value which is about to be stored into the ps_strings structure.
|
#
64094 |
|
01-Aug-2000 |
ps |
If the format string passed to setproctitle begins with a '-' character, skip the program name when setting the process title. Ansified with extreme prejudice.
Reviewed by: peter
|
#
53297 |
|
17-Nov-1999 |
brian |
Make setproctitle(NULL) restore all of the original arguments (if it's able).
|
#
53239 |
|
16-Nov-1999 |
phk |
Introduce commandline caching in the kernel.
This fixes some nasty procfs problems for SMP, makes ps(1) run much faster, and makes ps(1) even less dependent on /proc which will aid chroot and jails alike.
To disable this facility and revert to previous behaviour: sysctl -w kern.ps_arg_cache_limit=0
For full details see the current@FreeBSD.org mail-archives.
|
#
50476 |
|
27-Aug-1999 |
peter |
$Id$ -> $FreeBSD$
|
#
41875 |
|
16-Dec-1998 |
bde |
Adjust for kern.ps_strings and PS_STRINGS not being a pointer. This is an unimprovement here. I thought it would be an improvement, as in libkvm, but here we can access the strings directly.
Use sysctlbyname() instead of sysctl() and trust it to give a nonzero address if it succeeds.
|
#
35491 |
|
28-Apr-1998 |
dg |
Oops, revert part of a diff that wasn't supposed to have been committed.
|
#
35490 |
|
28-Apr-1998 |
dg |
Cache the results of the ps_strings sysctl so that it doesn't have to be redone for every call of setproctitle().
|
#
22993 |
|
22-Feb-1997 |
peter |
Revert $FreeBSD$ to $Id$
|
#
21673 |
|
14-Jan-1997 |
jkh |
Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
|
#
17141 |
|
12-Jul-1996 |
jkh |
General -Wall warning cleanup, part I. Submitted-By: Kent Vander Velden <graphix@iastate.edu>
|
#
14236 |
|
24-Feb-1996 |
peter |
If the two recently added sysctl variables exist, use those rather than the statically compiled PS_STRINGS and USRSTACK variables. This prevents programs using setproctitle from coredumping if the kernel VM is increased, and stops libkvm users (w, ps, etc) from needing to be recompiled if only the VM layout changes.
|
#
13039 |
|
26-Dec-1995 |
peter |
Bring in an initial version of setproctitle().. This is intended to replace the dozen other various hacks in the code that do all sorts of crude things including spamming the envrionment strings with the new argv string.
This version is mainly inspired by the sendmail version, with a couple of ideas taken from the NetBSD implementation as well.
|