~ubuntu-branches/debian/sid/eso-midas/sid

« back to all changes in this revision

Viewing changes to debian/patches/dotlockfile.patch

  • Committer: Package Import Robot
  • Author(s): Ole Streicher
  • Date: 2014-04-22 14:44:58 UTC
  • Revision ID: package-import@ubuntu.com-20140422144458-sl34juxohmn4aty4
Tags: 13.09pl1.2+dfsg-1
Initial release. (Closes: #740702)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Author: Ole Streicher <debian@liska.ath.cx>
 
2
Description: Use dotlockfile instead of lockfile.
 
3
--- a/system/unix/inmidas
 
4
+++ b/system/unix/inmidas
 
5
@@ -224,7 +224,7 @@
 
6
 if [ -z "$DAZUNIT" -a \( -z "$MIDOPTION" -o "$MIDOPTION" = "NOPARALLEL" -o "$SELECT_UNIT" = "AUTO" \) ]
 
7
 then
 
8
 
 
9
- lockfile -1 -r 10 $MID_WORK/running.lock      # 2> /dev/null 
 
10
+ dotlockfile -r 5 $MID_WORK/running.lock       # 2> /dev/null 
 
11
  if [ $? != 0 ] ; then
 
12
     DAZUNIT=99
 
13
 
 
14
--- a/system/unix/inmidas.sh
 
15
+++ b/system/unix/inmidas.sh
 
16
@@ -224,7 +224,7 @@
 
17
 if [ -z "$DAZUNIT" -a \( -z "$MIDOPTION" -o "$MIDOPTION" = "NOPARALLEL" -o "$SELECT_UNIT" = "AUTO" \) ]
 
18
 then
 
19
 
 
20
- lockfile -1 -r 10 $MID_WORK/running.lock      # 2> /dev/null 
 
21
+ dotlockfile -r 5 $MID_WORK/running.lock       # 2> /dev/null 
 
22
  if [ $? != 0 ] ; then
 
23
     DAZUNIT=99
 
24