mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-20 21:41:18 +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:
@@ -280,9 +280,7 @@ const char g_fmtcmdfailed[] = "nsh: %s: %s failed: %d\n";
|
||||
#endif
|
||||
const char g_fmtcmdoutofmemory[] = "nsh: %s: out of memory\n";
|
||||
const char g_fmtinternalerror[] = "nsh: %s: Internal error\n";
|
||||
#ifndef CONFIG_DISABLE_SIGNALS
|
||||
const char g_fmtsignalrecvd[] = "nsh: %s: Interrupted by signal\n";
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
@@ -834,13 +832,11 @@ static FAR char *nsh_filecat(FAR struct nsh_vtbl_s *vtbl, FAR char *s1,
|
||||
{
|
||||
/* EINTR is not an error (but will still stop the copy) */
|
||||
|
||||
#ifndef CONFIG_DISABLE_SIGNALS
|
||||
if (errno == EINTR)
|
||||
{
|
||||
nsh_error(vtbl, g_fmtsignalrecvd, "``");
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
/* Read error */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user