Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 82421 - start-stop-daemon.c patch for Darwin support and minor bug fix
Summary: start-stop-daemon.c patch for Darwin support and minor bug fix
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-17 18:05 UTC by Kito (RETIRED)
Modified: 2005-07-16 09:21 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for start-stop-daemon.c v1.10.20 (start-stop-daemon.c.patch,3.43 KB, patch)
2005-02-17 18:07 UTC, Kito (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kito (RETIRED) gentoo-dev 2005-02-17 18:05:53 UTC
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.
Comment 1 Kito (RETIRED) gentoo-dev 2005-02-17 18:07:38 UTC
Created attachment 51485 [details, diff]
patch for start-stop-daemon.c v1.10.20
Comment 2 Aron Griffis (RETIRED) gentoo-dev 2005-02-20 19:50:27 UTC
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));
 
 }
 
Comment 3 Kito (RETIRED) gentoo-dev 2005-02-21 08:49:22 UTC
That is the fix for bug 72145
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-05-30 17:43:41 UTC
That seems to be fine also for G/FreeBSD so that's fine for me. 
 
Comment 5 Kito (RETIRED) gentoo-dev 2005-07-15 17:37:43 UTC
bump bump. Can this be commited and closed up?
Comment 6 SpanKY gentoo-dev 2005-07-15 18:14:04 UTC
seems like a lot of crap but i guess we dont have a choice

UberLord: feel like handling this ?
Comment 7 Martin Schlemmer (RETIRED) gentoo-dev 2005-07-16 08:52:19 UTC
Added to trunk and 1.12 branch.  Please use this if you want to do porting.