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).