Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1035)

Unified Diff: test/monitor

Issue 2428004: Overhaul dhcpcd for chrome os use (Closed) Base URL: ssh://git@chromiumos-git//dhcpcd.git
Patch Set: purge hooks from configure to silence complaint Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/introspection ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/monitor
diff --git a/test/monitor b/test/monitor
new file mode 100755
index 0000000000000000000000000000000000000000..11d17b837828d2a8d71c9340ee0a1bc6b670d401
--- /dev/null
+++ b/test/monitor
@@ -0,0 +1,19 @@
+#!/usr/bin/python
+
+import gobject
+import dbus
+import dbus.mainloop.glib
+
+def event(pid, reason, value):
+ print "pid %s %s: %s" % (pid, reason, value)
+
+if __name__ == '__main__':
+ dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
+
+ bus = dbus.SystemBus()
+
+ bus.add_signal_receiver(event, bus_name="org.chromium.dhcpcd",
+ signal_name = "Event")
+
+ mainloop = gobject.MainLoop()
+ mainloop.run()
« no previous file with comments | « test/introspection ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698