Skip to content
Snippets Groups Projects
Commit 679b1db5 authored by rswindell's avatar rswindell
Browse files

Logs errno (instead of -1) on failure to lock node record.

parent 1b074c39
No related branches found
No related tags found
No related merge requests found
......@@ -163,9 +163,8 @@ void __fastcall TNodeForm::TimerTick(TObject *Sender)
lseek(nodedab, n*sizeof(node_t), SEEK_SET);
if(eof(nodedab))
break;
i=locking(nodedab, LK_LOCK, sizeof(node_t));
if(i!=0) {
ListBox->Items->Add("Error "+AnsiString(i)+" locking record for"
if(locking(nodedab, LK_LOCK, sizeof(node_t))!=0) {
ListBox->Items->Add("Error "+AnsiString(errno)+" locking record for"
" node "+AnsiString(n+1));
break; /* was continue */
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment