[launchd-changes] [23172] trunk/launchd/src/launchd_core_logic.c

source_changes at macosforge.org source_changes at macosforge.org
Thu Mar 22 11:31:28 PDT 2007


Revision: 23172
          http://trac.macosforge.org/projects/launchd/changeset/23172
Author:   zarzycki at apple.com
Date:     2007-03-22 11:31:28 -0700 (Thu, 22 Mar 2007)

Log Message:
-----------
A quick and dirty way to extract the jobmgr_t that a job is in when doing "launchctl list <job>"

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

Modified: trunk/launchd/src/launchd_core_logic.c
===================================================================
--- trunk/launchd/src/launchd_core_logic.c	2007-03-22 18:18:17 UTC (rev 23171)
+++ trunk/launchd/src/launchd_core_logic.c	2007-03-22 18:31:28 UTC (rev 23172)
@@ -469,6 +469,9 @@
 	if ((tmp = launch_data_new_string(j->label))) {
 		launch_data_dict_insert(r, tmp, LAUNCH_JOBKEY_LABEL);
 	}
+	if ((tmp = launch_data_new_string(j->mgr->name))) {
+		launch_data_dict_insert(r, tmp, LAUNCH_JOBKEY_LIMITLOADTOSESSIONTYPE);
+	}
 	if ((tmp = launch_data_new_bool(j->ondemand))) {
 		launch_data_dict_insert(r, tmp, LAUNCH_JOBKEY_ONDEMAND);
 	}

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


More information about the launchd-changes mailing list