Revision
23384
Author
zarzycki@apple.com
Date
2007-09-13 17:33:43 -0700 (Thu, 13 Sep 2007)

Log Message

More sanity checks.

Modified Paths

Diff

Modified: trunk/launchd/src/launchd_core_logic.c (23383 => 23384)


--- trunk/launchd/src/launchd_core_logic.c	2007-09-13 23:43:46 UTC (rev 23383)
+++ trunk/launchd/src/launchd_core_logic.c	2007-09-14 00:33:43 UTC (rev 23384)
@@ -2333,6 +2333,8 @@
 		return;
 	}
 
+	job_assumes(j, tnow > j->start_time);
+
 	/*
 	 * Some users adjust the wall-clock and then expect software to not notice.
 	 * Therefore, launchd must use an absolute clock instead of gettimeofday()

Modified: trunk/launchd/src/libvproc.c (23383 => 23384)


--- trunk/launchd/src/libvproc.c	2007-09-13 23:43:46 UTC (rev 23383)
+++ trunk/launchd/src/libvproc.c	2007-09-14 00:33:43 UTC (rev 23384)
@@ -322,6 +322,10 @@
 		errno = EPERM; break;
 	case BOOTSTRAP_NO_MEMORY:
 		errno = ENOMEM; break;
+	case BOOTSTRAP_NAME_IN_USE:
+		errno = EEXIST; break;
+	case 1:
+		errno = EIO; break;
 	default:
 		errno = EINVAL; break;
 	}