BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001108 [BusyBox] New Features feature always 12-01-06 11:40 12-01-06 11:58
Reporter eswierk View Status public  
Assigned To BusyBox
Priority normal Resolution open  
Status assigned   Product Version 1.2.x
Summary 0001108: 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.
Additional Information
Attached Files  busybox-200-flock.patch [^] (4,413 bytes) 12-01-06 11:40

- Relationships

- Notes
(0001851)
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


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker