From cf091024335052e4774d44179e80e1948da8610f Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sun, 28 Nov 2010 16:45:34 +0100 Subject: Use kill(pid, 0) to check if the process is alive --- src/general.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/general.c') diff --git a/src/general.c b/src/general.c index a093c16..2ae90f1 100644 --- a/src/general.c +++ b/src/general.c @@ -13,7 +13,7 @@ * Reads size bytes into the destination buffer from filename. * */ -bool slurp(char *filename, char *destination, int size) { +bool slurp(const char *filename, char *destination, int size) { int fd; if ((fd = open(filename, O_RDONLY)) == -1) -- cgit v1.2.3