bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: starting background processes from admin files


From: Jean-Pierre Sevigny
Subject: RE: starting background processes from admin files
Date: Fri, 9 Aug 2002 15:24:05 -0400

The problem is in client/server mode, the client hangs until the
background process finishes. In my loginfo file, i have

ALL /u01/cvsutils/bin/cvsWatchOn.sh %{s} &

In server mode, it is fine.

My cvs server is on solaris 5.8, version 1.11.2.

Jean-Pierre Sevigny



-----Original Message-----
From: Derek Robert Price [mailto:derek@ximbiot.com]
Sent: August 9, 2002 8:49 AM
To: Jean-Pierre Sevigny
Cc: bug-cvs@gnu.org
Subject: Re: starting background processes from admin files


Jean-Pierre Sevigny wrote:

>Hi,
>
>I am not sure if this is a CVS issue, or a Unix issue, but here it is.
>
>I would like to start some processes in the background for some operations,
>have something like
>ALL prog %{s}&
>in the loginfo file, for example.
>
>I want to do that so i dont hang the cvs commands for the users, when i
dont
>need to,
>for the time prog runs.
>
>When i'm running CVS locally, it is fine, the cvs command finishes and the
>"prog"
>runs in background. In client/server mode, the cvs client has to wait for
>"prog"
>to finish. Any idea why, and how can i have the client not waiting for the
>background process to finish ?
>
>

    <http://www.cvshome.org/docs/manual/cvs_18.html#SEC173>

Notice the sleep command in the example.  This is so that any cvs
processes run in the subshell won't create locks to stop the cvs server
process, or worse, create a deadlock situation.  You can play with the
timing.  Since you specified "ALL" in the loginfo file too,  your `prog'
will get called once per directory.  If it is operating recursively and
locking dirs before the parent process finished running, you might see
similar behavior.

You might like to take a look at the commit_prep.in and log_accum.in
scripts in the contrib directory of the CVS source distribution.

Derek

--
                *8^)

Email: derek@ximbiot.com

Get CVS support at http://ximbiot.com
--
Computer Lie #1: You'll never use all that disk space.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]