Commit 2ca888f5 authored by Daniel Salzman's avatar Daniel Salzman

knot: remove useless rcu lock from pid_filename

parent dcad0f82
......@@ -25,7 +25,6 @@
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <urcu.h>
#include "knot/common/log.h"
#include "knot/common/process.h"
......@@ -34,13 +33,11 @@
static char* pid_filename()
{
rcu_read_lock();
conf_val_t val = conf_get(conf(), C_SRV, C_RUNDIR);
char *rundir = conf_abs_path(&val, NULL);
val = conf_get(conf(), C_SRV, C_PIDFILE);
char *pidfile = conf_abs_path(&val, rundir);
free(rundir);
rcu_read_unlock();
return pidfile;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment