X-Git-Url: http://www.lcore.org/git/lcore.git/blobdiff_plain/7b8a26e75924ecff47d3e347eb4e2685656c728e..d7911799068d97efe3695e4097c9ab188b54218c:/unitfork.pas diff --git a/unitfork.pas b/unitfork.pas index 3bcb3b1..9e8503f 100644 --- a/unitfork.pas +++ b/unitfork.pas @@ -65,7 +65,11 @@ begin if ioresult <> 0 then exit; end; + {$IF FPC_FULLVERSION>=20602} + handle := getfilehandle(pidfile); + {$else} handle := getfs(pidfile); + {$endif} //debugout('got handle'); {check if locking is possible: it's not if other process still runs}