Actions
Bug #4321
closedrpc_svc_calls(3nsl): svc_run() can return
Start date:
2013-11-13
Due date:
% Done:
100%
Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:
External Bug:
Description
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 Marcel Telka over 8 years ago
- Status changed from New to In Progress
- Assignee set to Marcel Telka
Updated by Marcel Telka over 8 years ago
- Status changed from In Progress to Pending RTI
Updated by Electric Monk over 8 years ago
- Status changed from Pending RTI to Closed
- % Done changed from 0 to 100
git commit 17452594f0e9de79709558488fe1aa553bedaa68
commit 17452594f0e9de79709558488fe1aa553bedaa68 Author: Marcel Telka <marcel.telka@nexenta.com> Date: 2014-11-24T21:41:46.000Z 4321 rpc_svc_calls(3nsl): svc_run() can return Reviewed by: Richard Lowe <richlowe@richlowe.net> Reviewed by: Gordon Ross <gordon.ross@nexenta.com> Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com> Approved by: Dan McDonald <danmcd@omniti.com>
Actions