X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fprocd.git;a=blobdiff_plain;f=service%2Finstance.c;h=12c2efe2b2cc467d1ff6ac9174d5a3b870a9631d;hp=7447bad37deda68772c47be5b4fb5e98856a0a6c;hb=a5954cf302fe46d8e29770c818336763112b9a6e;hpb=810d7a51c584673f3511f1fa2eb447c67fd7f88e diff --git a/service/instance.c b/service/instance.c index 7447bad..12c2efe 100644 --- a/service/instance.c +++ b/service/instance.c @@ -241,8 +241,7 @@ instance_removepid(struct service_instance *in) { if (!in->pidfile) return 0; if (unlink(in->pidfile)) { - ERROR("Failed to removed pidfile: %s: %m\n", - in->pidfile); + ERROR("Failed to removed pidfile: %s: %m\n", in->pidfile); return 1; } return 0; @@ -258,19 +257,16 @@ instance_writepid(struct service_instance *in) } _pidfile = fopen(in->pidfile, "w"); if (_pidfile == NULL) { - ERROR("failed to open pidfile for writing: %s: %m", - in->pidfile); + ERROR("failed to open pidfile for writing: %s: %m", in->pidfile); return 1; } if (fprintf(_pidfile, "%d\n", in->proc.pid) < 0) { - ERROR("failed to write pidfile: %s: %m", - in->pidfile); + ERROR("failed to write pidfile: %s: %m", in->pidfile); fclose(_pidfile); return 2; } if (fclose(_pidfile)) { - ERROR("failed to close pidfile: %s: %m", - in->pidfile); + ERROR("failed to close pidfile: %s: %m", in->pidfile); return 3; }