Removed closing of stdin, stdout (and stderr on the Apple2). It was introduced in order to maximize the number of available file handles for the webserver. However none of the target machine DOSes allows to open a single file several times diminishing the intended effect very much. One the other hand not being able to "just printf() something" causes trouble over and again - i.e. hello-world seemingly not working...after all a typical case of german over-enigneering ;-)
This commit is contained in:
parent
6d987651c6
commit
50be40768b
10 changed files with 13 additions and 35 deletions
|
@ -30,7 +30,7 @@
|
|||
*
|
||||
* Author: Oliver Schmidt <ol.sc@web.de>
|
||||
*
|
||||
* $Id: contiki-main.c,v 1.19 2009/10/18 09:37:37 oliverschmidt Exp $
|
||||
* $Id: contiki-main.c,v 1.20 2010/02/10 07:43:25 oliverschmidt Exp $
|
||||
*/
|
||||
|
||||
#include "contiki-net.h"
|
||||
|
@ -73,12 +73,6 @@ main(void)
|
|||
rebootafterexit();
|
||||
videomode(VIDEOMODE_80COL);
|
||||
|
||||
#if !WITH_PFS
|
||||
close(STDIN_FILENO);
|
||||
close(STDOUT_FILENO);
|
||||
close(STDERR_FILENO);
|
||||
#endif /* !WITH_PFS */
|
||||
|
||||
process_init();
|
||||
|
||||
#if 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue