mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-20 12:55:43 +08:00
Squashed commit of the following:
include/ and netutils/: Remove references to CONFIG_DISABLE_SIGNALS. Signals can no longer be disabled. nshlib/: Remove references to CONFIG_DISABLE_SIGNALS. Signals can no longer be disabled. system/: Remove references to CONFIG_DISABLE_SIGNALS. Signals can no longer be disabled. testing/: Remove references to CONFIG_DISABLE_SIGNALS. Signals can no longer be disabled. examples/: Remove references to CONFIG_DISABLE_SIGNALS. Signals can no longer be disabled.
This commit is contained in:
@@ -111,13 +111,11 @@ int nsh_catfile(FAR struct nsh_vtbl_s *vtbl, FAR const char *cmd,
|
||||
|
||||
/* EINTR is not an error (but will stop stop the cat) */
|
||||
|
||||
#ifndef CONFIG_DISABLE_SIGNALS
|
||||
if (errval == EINTR)
|
||||
{
|
||||
nsh_error(vtbl, g_fmtsignalrecvd, cmd);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
nsh_error(vtbl, g_fmtcmdfailed, cmd, "read", NSH_ERRNO_OF(errval));
|
||||
}
|
||||
@@ -142,13 +140,11 @@ int nsh_catfile(FAR struct nsh_vtbl_s *vtbl, FAR const char *cmd,
|
||||
|
||||
/* EINTR is not an error (but will stop stop the cat) */
|
||||
|
||||
#ifndef CONFIG_DISABLE_SIGNALS
|
||||
if (errcode == EINTR)
|
||||
{
|
||||
nsh_error(vtbl, g_fmtsignalrecvd, cmd);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
nsh_error(vtbl, g_fmtcmdfailed, cmd, "write",
|
||||
NSH_ERRNO_OF(errcode));
|
||||
|
Reference in New Issue
Block a user