diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2015-10-29 13:09:26 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2015-10-30 10:12:05 +0200 |
commit | 9861a788306d5f742e633ff6a8a26a913f5e3fd1 (patch) | |
tree | 803ba61295468becef3df24f10fade8cacf44efc /src/Makefile.am | |
parent | 4683f7830491d1d50c5097466d9a066cb41286c7 (diff) | |
download | pies-9861a788306d5f742e633ff6a8a26a913f5e3fd1.tar.gz pies-9861a788306d5f742e633ff6a8a26a913f5e3fd1.tar.bz2 |
Introduce control connection.
* src/ctl.c: New file.
* src/Makefile.am (pies_SOURCES): Add ctl.c
* src/pies.c: New configuration statement "control"
* src/pies.h (instance, ctl_url): New externs.
(register_socket): Change signature.
(update_socket,ctl_open): New protos.
* src/socket.c (listenset): Remove.
(fdset): New static.
(sockinst)<handler>: Array of three pointers: handlers for
read, write, and exception, correspondingly.
(find_socket_handler): Remove.
(register_socket): Take three function pointers as arguments.
Update corresponding elements of fdset.
(update_socket): New function.
(pies_pause): Handle all three I/O operations.
(deregister_socket)
(register_program_socket)
(disable_socket,enable_socket): Reflect the changes.
* src/sysvinit.c (create_fifo): Update call to register_socket.
Diffstat (limited to 'src/Makefile.am')
-rw-r--r-- | src/Makefile.am | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 17c0d10..04634c7 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -19,6 +19,7 @@ sbin_PROGRAMS = pies pies_SOURCES = \ acl.c\ addrfmt.c\ + ctl.c\ depmap.c\ diag.c\ inetd.c\ |