| summaryrefslogtreecommitdiff | 
diff options
| author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2020-01-07 20:24:57 +0100 | 
|---|---|---|
| committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2020-01-07 20:24:57 +0100 | 
| commit | d65e74a20a50e2161e5ff2007f53aea8e3b105e2 (patch) | |
| tree | 63f3b64a1cda521e44e452199ec99ad8865360bb /src/device/physical | |
| parent | 8e624e9919040e2ec99be764394bb33a2bc77fd9 (diff) | |
...
Diffstat (limited to 'src/device/physical')
| -rw-r--r-- | src/device/physical/physical_device.c | 15 | 
1 files changed, 12 insertions, 3 deletions
| diff --git a/src/device/physical/physical_device.c b/src/device/physical/physical_device.c index 24c73af..cf74b3c 100644 --- a/src/device/physical/physical_device.c +++ b/src/device/physical/physical_device.c @@ -12,6 +12,8 @@  #include <relabsd/config/parameters.h> +#include <relabsd/server.h> +  #include <relabsd/device/physical_device.h>  /******************************************************************************/ @@ -200,11 +202,18 @@ int relabsd_physical_device_read           device->is_late = 0;           return -1; -   } -   RELABSD_S_PROG_ERROR("Reached what is supposed to be dead code."); +      default: +         RELABSD_FATAL +         ( +            "Unable to access the physical device: %s.", +            strerror(-returned_code) +         ); -   return -1; +         relabsd_server_interrupt(); + +         return -1; +   }  }  int relabsd_physical_device_is_late | 


