[launchd-changes] [23896] trunk/launchd/src/launchd_core_logic.c
source_changes at macosforge.org
source_changes at macosforge.org
Wed Apr 15 01:45:02 PDT 2009
Revision: 23896
http://trac.macosforge.org/projects/launchd/changeset/23896
Author: dsorresso at apple.com
Date: 2009-04-15 01:45:01 -0700 (Wed, 15 Apr 2009)
Log Message:
-----------
<rdar://problem/6780952> sampling processes at shutdown should not use Spotlight
Modified Paths:
--------------
trunk/launchd/src/launchd_core_logic.c
Modified: trunk/launchd/src/launchd_core_logic.c
===================================================================
--- trunk/launchd/src/launchd_core_logic.c 2009-04-14 21:34:28 UTC (rev 23895)
+++ trunk/launchd/src/launchd_core_logic.c 2009-04-15 08:45:01 UTC (rev 23896)
@@ -2889,7 +2889,12 @@
{
char pidstr[32];
snprintf(pidstr, sizeof(pidstr), "%u", j->p);
+#if !TARGET_OS_EMBEDDED
+ /* -nodsyms so sample doesn't try to use Spotlight to find dsym files after mds has gone away. */
+ char *sample_args[] = { "/usr/bin/sample", pidstr, "1", "-unsupportedShowArch", "-mayDie", "-nodsyms", "-file", j->mgr->sample_log_file, NULL };
+#else
char *sample_args[] = { "/usr/bin/sample", pidstr, "1", "-unsupportedShowArch", "-mayDie", "-file", j->mgr->sample_log_file, NULL };
+#endif
execve(sample_args[0], sample_args, environ);
_exit(EXIT_FAILURE);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/launchd-changes/attachments/20090415/8ccc83e4/attachment.html>
More information about the launchd-changes
mailing list