diff options
author | ps <ps@FreeBSD.org> | 2000-08-01 06:37:09 +0000 |
---|---|---|
committer | ps <ps@FreeBSD.org> | 2000-08-01 06:37:09 +0000 |
commit | 4b4777407a50f3cf96be2addda75d92b862a174b (patch) | |
tree | b86ecf35aab4f1fca464b0efa495aa70ce177072 /lib/libc/gen/setproctitle.3 | |
parent | 7bbd9bfadc01786cc3d3a7964628d21e02528e48 (diff) | |
download | FreeBSD-src-4b4777407a50f3cf96be2addda75d92b862a174b.zip FreeBSD-src-4b4777407a50f3cf96be2addda75d92b862a174b.tar.gz |
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
Diffstat (limited to 'lib/libc/gen/setproctitle.3')
-rw-r--r-- | lib/libc/gen/setproctitle.3 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libc/gen/setproctitle.3 b/lib/libc/gen/setproctitle.3 index b2322b3..7fd157f 100644 --- a/lib/libc/gen/setproctitle.3 +++ b/lib/libc/gen/setproctitle.3 @@ -47,6 +47,11 @@ result of a style expansion of the arguments as specified by the .Va fmt argument. +If the +.Va fmt +argument begins with a +.Dq - +character, the executable's name is skipped. .Pp If .Va fmt |