Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Aug 2006 14:17:05 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/usr.sbin/ngctl Makefile main.c
Message-ID:  <200608071417.k77EH58r001126@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
glebius     2006-08-07 14:17:05 UTC

  FreeBSD src repository

  Modified files:
    usr.sbin/ngctl       Makefile main.c 
  Log:
  Add line edit and history support to ngctl(8) via editline(3).
  
  Details:
  - The main thread runs editline(3) functions, that can block.
  - A separate thread is launched to monitor netgraph sockets.
  - The access to the descriptors is protected by a mutex. At
    runtime the monitoring thread owns the mutex. When the main
    thread reads a command from el_gets() it asks the monitoring
    thread to release a mutex and sleep until the main thread
    processes the command.
  
  This makes ngctl(8) depend on libedit, and libpthread. Thus, the
  new functionality isn't compiled in if release is being built
  with -DRELEASE_CRUNCH.
  
  PR:             bin/87352
  Reviewed by:    ru, Nuno Antunes <nuno.antunes gmail.com>
  
  Revision  Changes    Path
  1.15      +11 -0     src/usr.sbin/ngctl/Makefile
  1.21      +157 -22   src/usr.sbin/ngctl/main.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608071417.k77EH58r001126>