[BusyBox 0001108]: Implement flock
bugs at busybox.net
bugs at busybox.net
Fri Dec 1 19:58:43 UTC 2006
A NOTE has been added to this issue.
======================================================================
http://busybox.net/bugs/view.php?id=1108
======================================================================
Reported By: eswierk
Assigned To: BusyBox
======================================================================
Project: BusyBox
Issue ID: 1108
Category: New Features
Reproducibility: always
Severity: feature
Priority: normal
Status: assigned
======================================================================
Date Submitted: 12-01-2006 11:40 PST
Last Modified: 12-01-2006 11:58 PST
======================================================================
Summary: Implement flock
Description:
I've ported H. Peter Anvin's flock implementation
(http://directory.fsf.org/All/flock.html) to BusyBox. This utility is
handy for implementing mutual exclusion in shell scripts.
The attached patch is a rough first draft. It works, but segfaults if the
fd# argument is missing. I would appreciate suggestions for improvements,
especially for making option processing and usage more BusyBox-like.
======================================================================
----------------------------------------------------------------------
eswierk - 12-01-06 11:58
----------------------------------------------------------------------
I just noticed that my Fedora system has another implementation of flock,
from util-linux. The usage is completely different from the hpa
implementation, and since it's probably in much more widespread usage,
I'll port this one to BusyBox instead.
Issue History
Date Modified Username Field Change
======================================================================
12-01-06 11:40 eswierk New Issue
12-01-06 11:40 eswierk Status new => assigned
12-01-06 11:40 eswierk Assigned To => BusyBox
12-01-06 11:40 eswierk File Added: busybox-200-flock.patch
12-01-06 11:41 eswierk Issue Monitored: eswierk
12-01-06 11:58 eswierk Note Added: 0001851
======================================================================
More information about the busybox-cvs
mailing list