File: exit-error-code.diff

package info (click to toggle)
vbrfix 0.24%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,600 kB
  • sloc: sh: 8,089; perl: 2,029; cpp: 834; makefile: 33
file content (26 lines) | stat: -rw-r--r-- 547 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Description: Return error conditions including in the case of not changing a file.
Author: Rogério Theodoro de Brito <rbrito@ime.usp.br>
--- a/vbrfixc/vbrfix.cpp
+++ b/vbrfixc/vbrfix.cpp
@@ -73,6 +73,9 @@
     endFix();
     return false;
   }
+  catch (...) {
+    return false;
+  }
   return true;
 }
 void VbrFix::endFix(){
@@ -113,7 +116,10 @@
   catch(const char* err){
     if(err!=NULL)loge(err);
     endFix();
-    return false;
+    exit(-1);//return false;
+  }
+  catch (...) {
+    exit(-1);//return false;
   }
   return false;
 }