Bugzilla – Attachment 22045 Details for
Bug 11078
rebuild_zebra.pl can lose updates due to race condition during full rebuilds
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
flock testing program
flock.pl (text/x-perl-script), 519 bytes, created by
Doug Kingston
on 2013-10-18 05:14:51 UTC
(
hide
)
Description:
flock testing program
Filename:
MIME Type:
Creator:
Doug Kingston
Created:
2013-10-18 05:14:51 UTC
Size:
519 bytes
patch
obsolete
>#!/usr/bin/perl >$LOCK_EX = 2; >$LOCK_NB = 4; > >if (@ARGV[0] eq "-w") { > $LOCK_NB = 0; > shift; >} >$lock = @ARGV[0]; >shift @ARGV; >die "Usage: flock [-w] lockfile command [args]\n" if ($#ARGV < 0); > >if (! -f $lock) { > open LOCK, ">$lock" || die "cannot create lock file $lock: $!\n"; > print LOCK "This is a lockfile created by flock. Do not remove.\n"; >} else { > open LOCK, $lock || die "cannot open lock file $lock: $!\n"; >} >if (flock LOCK, $LOCK_EX|$LOCK_NB) { > system (@ARGV); > exit $? >} >die "flock failed: $!\n"; >exit 1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 11078
:
22044
| 22045 |
22205
|
22458
|
22506
|
22508
|
22532
|
22985
|
22992
|
23220
|
23221
|
23573
|
23574
|
25114
|
25172
|
25330
|
25412
|
25446
|
25447