diff --git a/lib/src/clixon_proc.c b/lib/src/clixon_proc.c index 3559623e..3cfe4807 100644 --- a/lib/src/clixon_proc.c +++ b/lib/src/clixon_proc.c @@ -589,15 +589,18 @@ clixon_process_sched(int fd, /*! Register scheduling of process start/stop/restart * 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 - * restarting it. In this way, the process "should have" time to exit. + * @note The delay is for mitigating a race condition if a process is restarted that is used in the + * 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 clixon_process_sched_register(clicon_handle h) { int retval = -1; struct timeval t; - struct timeval t1 = {0, 1000}; /* XXX See discussion ^*/ + struct timeval t1 = {0, 1500}; /* See discussion ^*/ gettimeofday(&t, NULL); timeradd(&t, &t1, &t); diff --git a/test/vagrant/vagrant.sh b/test/vagrant/vagrant.sh index c2e609ad..07572617 100755 --- a/test/vagrant/vagrant.sh +++ b/test/vagrant/vagrant.sh @@ -261,7 +261,7 @@ case ${with_restconf} in $sshcmd << 'EOF' test -d libevhtp || git clone https://github.com/clicon/libevhtp.git cd libevhtp; - ./configure + ./configure --libdir=/usr/lib # otherwise in /usr/local/lib where RH dont look make sudo make install EOF