summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/setproctitle.3
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1999-11-17 21:12:17 +0000
committerbrian <brian@FreeBSD.org>1999-11-17 21:12:17 +0000
commita6dfb66b8f373dfb4e877586559df92a05a6cea1 (patch)
treed41503393017157fb0db2eea76e84b244eb6c4d5 /lib/libc/gen/setproctitle.3
parentaf641e8f8d38ccf81d18db195017e1362ed50bf7 (diff)
downloadFreeBSD-src-a6dfb66b8f373dfb4e877586559df92a05a6cea1.zip
FreeBSD-src-a6dfb66b8f373dfb4e877586559df92a05a6cea1.tar.gz
Make setproctitle(NULL) restore all of the original arguments
(if it's able).
Diffstat (limited to 'lib/libc/gen/setproctitle.3')
-rw-r--r--lib/libc/gen/setproctitle.314
1 files changed, 1 insertions, 13 deletions
diff --git a/lib/libc/gen/setproctitle.3 b/lib/libc/gen/setproctitle.3
index 2d85b29..10eae65 100644
--- a/lib/libc/gen/setproctitle.3
+++ b/lib/libc/gen/setproctitle.3
@@ -54,23 +54,12 @@ argument.
.Pp
If
.Va fmt
-is NULL, the process title is reset to simply the name of the executable.
-.\" The following requests should be uncommented and used where appropriate.
-.\" This next request is for sections 2 and 3 function return values only.
-.\" .Sh RETURN VALUES
-.\" This next request is for sections 1, 6, 7 & 8 only
-.\" .Sh ENVIRONMENT
-.\" .Sh FILES
+is NULL, the process title is restored.
.Sh EXAMPLES
To set the title on a daemon to indicate its activity:
.Bd -literal -offset indent
setproctitle("talking to %s", inet_ntoa(addr));
.Ed
-.\" This next request is for sections 1, 6, 7 & 8 only
-.\" (command return values (to shell) and fprintf/stderr type diagnostics)
-.\" .Sh DIAGNOSTICS
-.\" The next request is for sections 2 and 3 error and signal handling only.
-.\" .Sh ERRORS
.Sh SEE ALSO
.Xr ps 1 ,
.Xr w 1 ,
@@ -110,4 +99,3 @@ stole the idea from the
.Sy "Sendmail 8.7.3"
source code by
.An Eric Allman Aq eric@sendmail.org .
-.\" .Sh BUGS
OpenPOWER on IntegriCloud