Rewrite last GPL bits in relay.c and relay.h
[ust.git] / ustd / ustd.c
index bfa6352e1ccf2b4063660ff279b007f29ec3702a..26f87a2ba3f991f0e7a5acba10aa8a6d3b539b17 100644 (file)
@@ -545,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");
@@ -698,7 +698,6 @@ int start_ustd_daemon()
        }
        else {
                char buf;
-               FILE *pidfp;
 
                result = read(fd[0], &buf, 1);
                if(result == -1) {
This page took 0.055706 seconds and 4 git commands to generate.