Revision
23311
Author
zarzycki@apple.com
Date
2007-07-16 09:46:32 -0700 (Mon, 16 Jul 2007)

Log Message

<rdar://problem/5337302> Bug: launchctl.c:452 (23304):25: _vproc_send_signal_by_label(launch_data_get_string(tmps), VPROC_MAGIC_UNLOAD_SIGNAL) == NULL

Modified Paths

Diff

Modified: trunk/launchd/src/launchctl.c (23310 => 23311)


--- trunk/launchd/src/launchctl.c	2007-07-16 15:47:31 UTC (rev 23310)
+++ trunk/launchd/src/launchctl.c	2007-07-16 16:46:32 UTC (rev 23311)
@@ -451,7 +451,9 @@
 		return;
 	}
 
-	assumes(_vproc_send_signal_by_label(launch_data_get_string(tmps), VPROC_MAGIC_UNLOAD_SIGNAL) == NULL);
+	if (_vproc_send_signal_by_label(launch_data_get_string(tmps), VPROC_MAGIC_UNLOAD_SIGNAL) != NULL) {
+		fprintf(stderr, "%s: Error unloading: %s\n", getprogname(), launch_data_get_string(tmps));
+	}
 }
 
 launch_data_t