aboutsummaryrefslogtreecommitdiff
path: root/tests/server/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/server/util.c')
-rw-r--r--tests/server/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/server/util.c b/tests/server/util.c
index 3d12ba9b9..8a2fa8814 100644
--- a/tests/server/util.c
+++ b/tests/server/util.c
@@ -218,7 +218,7 @@ int wait_ms(int timeout_ms)
return r;
}
-bool write_pidfile(const char *filename)
+int write_pidfile(const char *filename)
{
FILE *pidfile;
long pid;
@@ -227,10 +227,10 @@ bool write_pidfile(const char *filename)
pidfile = fopen(filename, "w");
if(!pidfile) {
logmsg("Couldn't write pid file: %s %s", filename, strerror(ERRNO));
- return FALSE;
+ return 0; /* fail */
}
fprintf(pidfile, "%ld\n", pid);
fclose(pidfile);
logmsg("Wrote pid %ld to %s", pid, filename);
- return TRUE;
+ return 1; /* success */
}