mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-04 00:50:42 +02:00
m3 and g2: bugfix to close fd in server after reading detector type
This commit is contained in:
parent
23d9d5fa81
commit
453908c7cb
@ -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",
|
||||
|
@ -1976,6 +1976,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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user