Is this condition (am_server == 1 and am_daemon == 0) possible ?
Qi Yong
qiyong at fc-cn.com
Thu Feb 15 09:54:28 GMT 2007
Matt McCutchen wrote:
> On 2/14/07, Qi Yong <qiyong at fc-cn.com> wrote:
>
>> If so, what is (am_server ==1 and am_daemon == 1) for?
>
>
> For an rsync daemon process handling an individual request. Here's a
> listing of all the cases (Wayne please correct me if necessary):
>
> am_server = 0, am_daemon = 0: client called by user from the command line
> am_server = 1, am_daemon = 0: server invoked over a remote shell or
> forked locally by client
> am_server = 0, am_daemon = 1: main process of non-single-use daemon
Define your single-use daemon. Do you mean rsync+inetd and child of
stand-alone rsync?
IMHO:
am_server = 0, am_daemon = 1: stand-alone or inetd rsync.
am_server = 1, am_daemon =1: daemon_over_rsh rsync, when rsync is called
by the double colon (::)
Please correct me. thanks
> am_server = 1, am_daemon = 1: single-use daemon, or daemon process
> handling an individual request
--
Qi Yong
More information about the rsync
mailing list