mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 10:07:59 +02:00
m3 and g2: bugfix to close fd in server after reading detector type
This commit is contained in:
@ -1766,6 +1766,7 @@ int checkDetectorType() {
|
||||
char buffer[MAX_STR_LENGTH];
|
||||
memset(buffer, 0, sizeof(buffer));
|
||||
fread(buffer, MAX_STR_LENGTH, sizeof(char), fd);
|
||||
fclose(fd);
|
||||
if (strlen(buffer) == 0) {
|
||||
LOG(logERROR,
|
||||
("Could not read file %s to get type of the module attached\n",
|
||||
|
Reference in New Issue
Block a user