[launchd-changes] [23020] trunk/launchd/src/launchd.c

source_changes at macosforge.org source_changes at macosforge.org
Tue Jan 23 10:56:21 PST 2007


Revision: 23020
          http://trac.macosforge.org/projects/launchd/changeset/23020
Author:   zarzycki at apple.com
Date:     2007-01-23 10:56:20 -0800 (Tue, 23 Jan 2007)

Log Message:
-----------
<rdar://problem/4944456> mount_smbfs hangs at login time

Modified Paths:
--------------
    trunk/launchd/src/launchd.c

Modified: trunk/launchd/src/launchd.c
===================================================================
--- trunk/launchd/src/launchd.c	2007-01-22 21:28:52 UTC (rev 23019)
+++ trunk/launchd/src/launchd.c	2007-01-23 18:56:20 UTC (rev 23020)
@@ -290,7 +290,16 @@
 		}
 	}
 
-	if (stat(ldconf, &sb) == 0) {
+	/*
+	 * We cannot stat() anything in the home directory right now.
+	 *
+	 * The per-user launchd can easily be demand launched by the tool doing
+	 * the mount of the home directory. The result is an ugly deadlock.
+	 *
+	 * We hope to someday have a non-blocking stat(), but for now, we have
+	 * to skip it.
+	 */
+	if (!h && stat(ldconf, &sb) == 0) {
 		job_dispatch(rlcj, true);
 	}
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/launchd-changes/attachments/20070123/61cc2d9e/attachment.html


More information about the launchd-changes mailing list