X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=ustd%2Fustd.c;h=5a4569519b78138d3ed7c29fc985a58b7b8c1b33;hb=43f0d5acc1fc89b5890365f7624a2dd8e946df1f;hp=858bdf52b46c9e21ac6bab46e358ff016c117505;hpb=2b3c64a412053525cff6233a963f37f4bfbdb284;p=ust.git diff --git a/ustd/ustd.c b/ustd/ustd.c index 858bdf5..5a45695 100644 --- a/ustd/ustd.c +++ b/ustd/ustd.c @@ -33,9 +33,8 @@ #include #include "ustd.h" -#include "localerr.h" +#include "usterr.h" #include "ustcomm.h" -#include "share.h" /* return value: 0 = subbuffer is finished, it won't produce data anymore * 1 = got subbuffer successfully @@ -546,7 +545,7 @@ static int write_pidfile(const char *file_name, pid_t pid) { FILE *pidfp; - pidfp = fopen(file_name, "w+"); + pidfp = fopen(file_name, "w"); if(!pidfp) { PERROR("fopen (%s)", pidfile); WARN("killing child process");