Project

General

Profile

Actions

Bug #4321

closed

rpc_svc_calls(3nsl): svc_run() can return

Added by Marcel Telka almost 8 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
manpage - manual pages
Start date:
2013-11-13
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:

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.

Actions #1

Updated by Marcel Telka almost 7 years ago

  • Status changed from New to In Progress
  • Assignee set to Marcel Telka
Actions #2

Updated by Marcel Telka almost 7 years ago

  • Status changed from In Progress to Pending RTI
Actions #3

Updated by Electric Monk almost 7 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

Also available in: Atom PDF