[RTEMS Project] #3859: No output from joel scripts in telnet
RTEMS trac
trac at rtems.org
Fri Aug 7 07:10:16 UTC 2020
#3859: No output from joel scripts in telnet
-------------------------+--------------------------
Reporter: Chris Johns | Owner: Chris Johns
Type: defect | Status: reopened
Priority: normal | Milestone: 5.1
Component: shell | Version: 5
Severity: blocker | Resolution:
Keywords: | Blocked By:
Blocking: |
-------------------------+--------------------------
Comment (by Sebastian Huber):
The following change fixes the NULL pointer access:
{{{
diff --git a/cpukit/libmisc/shell/shell.c b/cpukit/libmisc/shell/shell.c
index 0b06e8b4d1..72aeb23c43 100644
--- a/cpukit/libmisc/shell/shell.c
+++ b/cpukit/libmisc/shell/shell.c
@@ -234,12 +234,6 @@ static void rtems_shell_clear_shell_env(void)
eno = pthread_setspecific(rtems_shell_current_env_key, NULL);
if (eno != 0)
rtems_error(0, "pthread_setspecific(shell_current_env_key): clear");
-
- /*
- * Clear stdin and stdout file pointers of they will be closed
- */
- stdin = NULL;
- stdout = NULL;
}
/*
}}}
What is the purpose of this code?
--
Ticket URL: <http://devel.rtems.org/ticket/3859#comment:24>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list