CVS死锁

今天在release一个版本的时候,碰到如下错:
cvs update: [12:58:26] waiting for <username> lock in /CVSroot/dsb/proj/...
google了一下,居然直接找到了解决方案,网络真是个好东西,赞一下,也顺便copy一下文章到这里,给下次可能碰到类似问题的朋友:
CVS says it is waiting for a lock; what does that mean?
it means you're trying to access a subdirectory of the repository that is locked by some other CVS process at the moment. A process is being run in that directory so it may not be in a consistent state for other CVS processes to use.

However, if the wait message persists for a long time, it probably means that a CVS process failed to clean up after itself, for whatever reason. It can happen when CVS dies suddenly and unexpectedly, say, due to a power failure on the repository machine.

[b]The solution[/b] is to [b]remove the lock files by hand[/b] from the repository subdirectory in question. Go into that part of the repository and look for files named [b]#cvs.lock or that begin with #cvs.wfl or #cvs.rfl[/b]. Compare the file's timestamps with the start times of any currently running CVS processes. If the files could not possibly have been created by any of those processes, it's safe to delete them. The waiting CVS processes eventually notice when the lock files are gone – this should take about 30 seconds – and allow the requested operation to proceed.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值