On Friday, December 09, 2011 04:35:11 PM Chet Ramey wrote:
> On 12/9/11 10:12 AM, Jean-Jacques Brucker wrote:
> > Playing with flock to securely access to a file shared by multiple
> > process. I noticed there are no documented way to do an lseek on an
>
> > opened fd with bash :
> [...]
>
On 12/9/11 10:12 AM, Jean-Jacques Brucker wrote:
> Playing with flock to securely access to a file shared by multiple
> process. I noticed there are no documented way to do an lseek on an
> opened fd with bash :
[...]
> I have solve my problem by making this small binary (i just needed a re
On Fri, Dec 09, 2011 at 04:12:15PM +0100, Jean-Jacques Brucker wrote:
> I have solve my problem by making this small binary (i just needed a rewind) :
>
> int main(int argc,char * argv[]) { return lseek(atoi(argv[1]),0L,0); }
>
> But i ll be glad to use a standard and finished tool.
That looks p