Adds support for Darwin/Mac OS X, fixes Bug 72145. Tested briefly on Gentoo/ppc, Tested thoroughly on Darwin-7.01, Opendarwin-7.2.1, Mac OS X-10.3.8, Needs testing on *BSD and x86 please. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 51485 [details, diff] patch for start-stop-daemon.c v1.10.20
What is this part of the patch for? It doesn't seem related to MacOS support: @@ -729,8 +735,7 @@ if (fscanf(f, "%d", &pid) == 1) check(pid); fclose(f); - } else if (errno != ENOENT) - fatal("open pidfile %s: %s", name, strerror(errno)); + } else fatal("open pidfile %s: %s", name, strerror(errno)); }
That is the fix for bug 72145
That seems to be fine also for G/FreeBSD so that's fine for me.
bump bump. Can this be commited and closed up?
seems like a lot of crap but i guess we dont have a choice UberLord: feel like handling this ?
Added to trunk and 1.12 branch. Please use this if you want to do porting.