]> git.pld-linux.org Git - packages/fpc.git/commitdiff
- avoid runtime error on file open operations
authorJan Rękorajski <baggins@pld-linux.org>
Mon, 23 Oct 2006 11:05:50 +0000 (11:05 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    fpc-avoid-RE.patch -> 1.1

fpc-avoid-RE.patch [new file with mode: 0644]

diff --git a/fpc-avoid-RE.patch b/fpc-avoid-RE.patch
new file mode 100644 (file)
index 0000000..a4dd50c
--- /dev/null
@@ -0,0 +1,29 @@
+Avoid Runtime Error during file open, especially when there IS a legal
+check if it succeded or not
+
+--- fpcbuild_2.0.4_exp/fpcsrc/rtl/linux/linuxvcs.pp~   2006-02-15 11:04:09.000000000 +0100
++++ fpcbuild_2.0.4_exp/fpcsrc/rtl/linux/linuxvcs.pp    2006-10-23 12:52:49.052613239 +0200
+@@ -94,8 +94,10 @@
+   pid:=fpgetpid;
+   repeat
+     str(pid,s);
++    {$I-}
+     assign(f,'/proc/'+s+'/stat');
+     reset(f);
++    {$I+}
+     if ioresult<>0 then
+       break;
+     read(f,dummy);
+--- fpcbuild_2.0.4_exp/fpcsrc/utils/grab_vcsa.pp~      2006-02-15 11:04:09.000000000 +0100
++++ fpcbuild_2.0.4_exp/fpcsrc/utils/grab_vcsa.pp       2006-10-23 12:52:19.823019988 +0200
+@@ -78,8 +78,10 @@
+       pid:=fpgetpid;
+       repeat
+         str(pid,s);
++      {$I-}
+         assign(f,'/proc/'+s+'/stat');
+         reset(f);
++      {$I+}
+         if ioresult<>0 then
+           begin
+             found_vcsa:=false;
This page took 0.083583 seconds and 4 git commands to generate.