cvs commit: src/usr.sbin/ngctl Makefile main.c
glebius at FreeBSD.org
Thu Aug 10 11:11:50 UTC 2006
glebius 2006-08-10 11:11:49 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_6)
usr.sbin/ngctl Makefile main.c
Add line edit and history support to ngctl(8) via editline(3).
- 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
Reviewed by: ru, Nuno Antunes <nuno.antunes gmail.com>
Revision Changes Path
126.96.36.199 +11 -0 src/usr.sbin/ngctl/Makefile
188.8.131.52 +158 -22 src/usr.sbin/ngctl/main.c
More information about the cvs-src