#include <getopt.h>
#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
{
FILE *pidfp;
- pidfp = fopen(file_name, "w+");
+ pidfp = fopen(file_name, "w");
if(!pidfp) {
PERROR("fopen (%s)", pidfile);
WARN("killing child process");
}
else {
char buf;
- FILE *pidfp;
result = read(fd[0], &buf, 1);
if(result == -1) {