]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Allow nghook to execute a program with the data socket connected to
authorharti <harti@FreeBSD.org>
Fri, 24 Oct 2003 10:01:36 +0000 (10:01 +0000)
committerharti <harti@FreeBSD.org>
Fri, 24 Oct 2003 10:01:36 +0000 (10:01 +0000)
commitfb6ea7ec4f0930f5aadebd232e5a6e48ac76226c
tree009e2e6213e94ebe2c9f9bf7b89bd4595af698e4
parentb1bb573d38c3eb2a656dc0f0bac8e5d5fb034e34
Allow nghook to execute a program with the data socket connected to
stdin and stdout instead of relaying the data. Now it is possible
to say:

nghook -e path: hook /usr/local/bin/foo arg1 arg2

and foo will have the hook to path: at file descriptors 0 and 1.

Add an option to specify control messages to be send to the node before
either executing the program or entering the data relay loop.
usr.sbin/nghook/main.c
usr.sbin/nghook/nghook.8