test fixes: mod timer for arm and install libevhtp lin in /us/lib

This commit is contained in:
Olof hagsand 2021-03-06 17:04:31 +01:00
parent b7991d9b39
commit c2f07fd29c
2 changed files with 7 additions and 4 deletions

View file

@ -589,15 +589,18 @@ clixon_process_sched(int fd,
/*! Register scheduling of process start/stop/restart /*! Register scheduling of process start/stop/restart
* After a delay t1, schedule the process * After a delay t1, schedule the process
* @note The delay is for mitigating a race condition if a process is restarted that is used in the session * @note The delay is for mitigating a race condition if a process is restarted that is used in the
* restarting it. In this way, the process "should have" time to exit. * session restarting it. In this way, the process "should have" time to exit.
* However, for slow machines, this delay may need to be longer.
* On a Raspberry pi it was measured to need be 1.5ms.
* However, if it is much longer, it may kill restconf as an unrelated session has been opened.
*/ */
int int
clixon_process_sched_register(clicon_handle h) clixon_process_sched_register(clicon_handle h)
{ {
int retval = -1; int retval = -1;
struct timeval t; struct timeval t;
struct timeval t1 = {0, 1000}; /* XXX See discussion ^*/ struct timeval t1 = {0, 1500}; /* See discussion ^*/
gettimeofday(&t, NULL); gettimeofday(&t, NULL);
timeradd(&t, &t1, &t); timeradd(&t, &t1, &t);

View file

@ -261,7 +261,7 @@ case ${with_restconf} in
$sshcmd << 'EOF' $sshcmd << 'EOF'
test -d libevhtp || git clone https://github.com/clicon/libevhtp.git test -d libevhtp || git clone https://github.com/clicon/libevhtp.git
cd libevhtp; cd libevhtp;
./configure ./configure --libdir=/usr/lib # otherwise in /usr/local/lib where RH dont look
make make
sudo make install sudo make install
EOF EOF