rpc_svc_calls(3nsl): svc_run() can return
In the rpc_svc_calls(3nsl) man page it is stated that svc_run() never returns:
The svc_run() function never returns. In single-threaded mode, the function waits for RPC requests to arrive. When an RPC request arrives, the svc_run() function calls the appropriate service procedure. This procedure is usually waiting for the poll(2) library call to return.
This is basically not true. The fact that svc_run() could return (and how) is documented in the same man page:
The svc_exit() function when called by any of the RPC server procedures or otherwise, destroys all services registered by the server and causes svc_run() to return.
Also, the svc_run() implementation clearly shows that svc_run() can return.
Updated by Electric Monk over 6 years ago
- Status changed from Pending RTI to Closed
- % Done changed from 0 to 100
commit 17452594f0e9de79709558488fe1aa553bedaa68 Author: Marcel Telka <email@example.com> Date: 2014-11-24T21:41:46.000Z 4321 rpc_svc_calls(3nsl): svc_run() can return Reviewed by: Richard Lowe <firstname.lastname@example.org> Reviewed by: Gordon Ross <email@example.com> Reviewed by: Yuri Pankov <firstname.lastname@example.org> Approved by: Dan McDonald <email@example.com>