From 0e4c2c5607c6b12269452601e8966188fe639974 Mon Sep 17 00:00:00 2001 From: Dmitry Grigoryev Date: Sun, 28 May 2023 08:13:10 +0200 Subject: [PATCH 1/2] fix lock file cleanup --- lazsynaser.pas | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lazsynaser.pas b/lazsynaser.pas index 0389ea0..db1ed26 100644 --- a/lazsynaser.pas +++ b/lazsynaser.pas @@ -2297,16 +2297,17 @@ function TBlockSerial.cpomComportAccessible: boolean; exit; // done. end; // Is port owned by orphan? Then it's time for error recovery. - //FPC forgot to add getsid.. :-( {$IFNDEF FPC} if Libc.getsid(ReadLockfile) = -1 then + {$ELSE} + if FpGetSid(ReadLockfile) = -1 then + {$ENDIF} begin // Lockfile was left from former desaster DeleteFile(Filename); // error recovery CreateLockfile(MyPid); result := true; exit; end; - {$ENDIF} result := false // Sorry, port is owned by living PID and locked end; From d85fd374e4ec83f8874a846b33d3e851c3a9c944 Mon Sep 17 00:00:00 2001 From: Dmitry Grigoryev Date: Sun, 28 May 2023 08:46:04 +0200 Subject: [PATCH 2/2] ignore IDE temp files --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index cd2946a..3a54fad 100644 --- a/.gitignore +++ b/.gitignore @@ -45,3 +45,6 @@ $RECYCLE.BIN/ Network Trash Folder Temporary Items .apdisk + +backup/ +lib/