* Add support for other operating systems (kFreeBSD, FreeBSD, and OSX for now).

* Switch to autoconf from genconfig.sh.
This commit is contained in:
Justin Maggard
2011-09-16 23:39:58 +00:00
parent 715af3519b
commit 773e1f6566
40 changed files with 1952 additions and 533 deletions

View File

@@ -94,7 +94,7 @@ writepidfile(const char * fname, int pid)
int pidstringlen;
int pidfile;
if(!fname || (strlen(fname) == 0))
if(!fname || *fname == '\0')
return -1;
if( (pidfile = open(fname, O_WRONLY|O_CREAT, 0644)) < 0)
@@ -129,7 +129,7 @@ checkforrunning(const char * fname)
int pidfile;
pid_t pid;
if(!fname || (strlen(fname) == 0))
if(!fname || *fname == '\0')
return -1;
if( (pidfile = open(fname, O_RDONLY)) < 0)