aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/bundle.c
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>1998-10-27 22:53:22 +0000
committerBrian Somers <brian@FreeBSD.org>1998-10-27 22:53:22 +0000
commit0f781a72523acc386d0202547e14c36069445d5a (patch)
tree8c59bbb808700baae376f8a4ba463e3abd4cf0d0 /usr.sbin/ppp/bundle.c
parenta237dcba17d047258e1c9907b05515b606bbdefd (diff)
downloadsrc-0f781a72523acc386d0202547e14c36069445d5a.tar.gz
src-0f781a72523acc386d0202547e14c36069445d5a.zip
Add ``set proctitle'' for changing argv[0]. All substitutions
are done in the same way as command execution. For example, ``set proctitle USER INTERFACE PROCESSID'' would be useful in a -direct profile for identifying who's connected.
Notes
Notes: svn path=/head/; revision=40679
Diffstat (limited to 'usr.sbin/ppp/bundle.c')
-rw-r--r--usr.sbin/ppp/bundle.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/ppp/bundle.c b/usr.sbin/ppp/bundle.c
index 263f6cc9660b..4f111343466b 100644
--- a/usr.sbin/ppp/bundle.c
+++ b/usr.sbin/ppp/bundle.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: bundle.c,v 1.37 1998/10/24 01:08:45 brian Exp $
+ * $Id: bundle.c,v 1.38 1998/10/26 19:07:38 brian Exp $
*/
#include <sys/param.h>
@@ -762,6 +762,8 @@ bundle_Create(const char *prefix, int type, const char **argv)
log_SetTun(bundle.unit);
bundle.argv = argv;
+ bundle.argv0 = argv[0];
+ bundle.argv1 = argv[1];
s = socket(AF_INET, SOCK_DGRAM, 0);
if (s < 0) {
@@ -1200,6 +1202,7 @@ bundle_ShowStatus(struct cmdargs const *arg)
int remaining;
prompt_Printf(arg->prompt, "Phase %s\n", bundle_PhaseName(arg->bundle));
+ prompt_Printf(arg->prompt, " Title: %s\n", arg->bundle->argv[0]);
prompt_Printf(arg->prompt, " Device: %s\n", arg->bundle->dev.Name);
prompt_Printf(arg->prompt, " Interface: %s @ %lubps\n",
arg->bundle->iface->name, arg->bundle->ifSpeed);