From d3e4b7524d937eaacacc84c72db162cfcf568fe0 Mon Sep 17 00:00:00 2001
From: oliverschmidt <oliverschmidt>
Date: Sat, 9 Sep 2006 23:29:50 +0000
Subject: [PATCH] Examples really benefit from actually working ;-)

---
 doc/example-packet-service.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/doc/example-packet-service.c b/doc/example-packet-service.c
index dfe6ce2c9..3c26c39d1 100644
--- a/doc/example-packet-service.c
+++ b/doc/example-packet-service.c
@@ -121,6 +121,13 @@ PROCESS_THREAD(example_packet_service_process, ev, data)
    */
   SERVICE_REGISTER(example_packet_service);
 
+  /*
+   * Now we'll make sure that the poll handler is executed
+   * initially. We do this by calling process_poll() with this
+   * process as its argument.
+   */
+  process_poll(&example_packet_service_process);
+
   /*
    * And we wait for either the process to exit, or for the service to
    * be removed (by someone else).