Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 390204 Details for
Bug 530416
sys-process/cronbase: run-crons: rewrite in POSIX shell
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Remove a bashism that fails with *ksh.
diff (text/plain), 507 bytes, created by
Alexander Hof
on 2014-11-24 15:53:57 UTC
(
hide
)
Description:
Remove a bashism that fails with *ksh.
Filename:
MIME Type:
Creator:
Alexander Hof
Created:
2014-11-24 15:53:57 UTC
Size:
507 bytes
patch
obsolete
>--- run-crons.stock 2014-11-24 16:45:17.822842446 +0100 >+++ run-crons.n 2014-11-24 16:46:39.554102904 +0100 >@@ -37,7 +37,8 @@ > > # Make sure we're not running multiple instances at once. > # Try twice to lock, otherwise give up. >-for ((i = 0; i < 2; i = i + 1)); do >+i=0 >+while [ "$i" -lt 2 ]; do > ln -sn $$ ${LOCKFILE} 2>/dev/null && break > > # lock failed, check for a running process. >@@ -54,6 +55,7 @@ > else > rm -f ${LOCKFILE} > fi >+ i=$(($i+1)) > done > > # Check to make sure locking was successful
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 530416
:
390204
|
390214