* Added valgrind memory leak tests in testmem.sh for restconf

* Added clicon_socket_set() and clicon_socket_get() functions for cleaning up backend server and restconf FCGI socket on termination.
* Removed obsolete `-x` command-line option to clixon_cli.
This commit is contained in:
Olof Hagsand 2019-02-20 13:05:31 +01:00
parent 28bd698968
commit 6e63f0a77b
29 changed files with 193 additions and 131 deletions

View file

@ -283,6 +283,10 @@ send_hello(clicon_handle h,
return retval;
}
/*! Clean and close all state of netconf process (but dont exit).
* Cannot use h after this
* @param[in] h Clixon handle
*/
static int
netconf_terminate(clicon_handle h)
{