[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH 3/7] hurd: add notification callbacks for the process management



XXX

* hurd/process_notify.defs: New file.
---
 hurd/process_notify.defs |   21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 hurd/process_notify.defs

diff --git a/hurd/process_notify.defs b/hurd/process_notify.defs
new file mode 100644
index 0000000..7972ef7
--- /dev/null
+++ b/hurd/process_notify.defs
@@ -0,0 +1,21 @@
+/* XXX */
+
+subsystem process_notify 24500;
+
+#include <hurd/hurd_types.defs>
+
+#ifdef PROCESS_NOTIFY_IMPORTS
+PROCESS_NOTIFY_IMPORTS
+#endif
+
+/* For maximum robustness, the server must not wait for the client to
+   receive the notification message.  This is achieved by setting a
+   send timeout (XXX which is implicitely 0 with MACH_MSG_TIMEOUT_NONE).  */
+MsgOption MACH_SEND_TIMEOUT;
+
+/* XXX: Notify that a process has been created or died.  */
+simpleroutine notify_process_changed (
+	notify_port: mach_port_t;
+	pid: pid_t;
+	ppid: pid_t;
+	dead: boolean_t);
-- 
1.7.10.4


Reply to: