服务会阻塞等待直到锁被释放:flock(lockfd,LOCK_EX)服务会返回错误发现文件已经被锁住时:ret = flock(lockfd,LOCK_EX|LOCK_NB)同时ret = -1, errno = EWOULDBLOCK