mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
Free up unused file descriptors.
This commit is contained in:
parent
368d389970
commit
8a4890c9e5
@ -30,7 +30,7 @@
|
||||
*
|
||||
* Author: Oliver Schmidt <ol.sc@web.de>
|
||||
*
|
||||
* $Id: contiki-main.c,v 1.3 2008/02/17 14:12:52 oliverschmidt Exp $
|
||||
* $Id: contiki-main.c,v 1.4 2008/02/28 21:56:47 oliverschmidt Exp $
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
@ -81,12 +81,16 @@ main(void)
|
||||
{
|
||||
struct ethernet_config *ethernet_config;
|
||||
|
||||
close(STDIN_FILENO);
|
||||
close(STDOUT_FILENO);
|
||||
#if !UIP_LOGGING && !LOG_CONF_ENABLED
|
||||
close(STDERR_FILENO);
|
||||
#endif /* !WITH_PFS */
|
||||
|
||||
process_init();
|
||||
|
||||
#if 1
|
||||
|
||||
ethernet_config = config_read("contiki.cfg");
|
||||
|
||||
#else
|
||||
{
|
||||
static struct ethernet_config config = {0xDE08, "cs8900a.eth"};
|
||||
|
@ -30,7 +30,7 @@
|
||||
*
|
||||
* Author: Oliver Schmidt <ol.sc@web.de>
|
||||
*
|
||||
* $Id: contiki-main.c,v 1.18 2008/02/17 14:13:07 oliverschmidt Exp $
|
||||
* $Id: contiki-main.c,v 1.19 2008/02/28 21:57:09 oliverschmidt Exp $
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
@ -81,12 +81,16 @@ main(void)
|
||||
{
|
||||
struct ethernet_config *ethernet_config;
|
||||
|
||||
close(STDIN_FILENO);
|
||||
close(STDOUT_FILENO);
|
||||
#if !UIP_LOGGING && !LOG_CONF_ENABLED
|
||||
close(STDERR_FILENO);
|
||||
#endif /* !WITH_PFS */
|
||||
|
||||
process_init();
|
||||
|
||||
#if 1
|
||||
|
||||
ethernet_config = config_read("contiki.cfg");
|
||||
|
||||
#else
|
||||
{
|
||||
static struct ethernet_config config = {0xDE08, "cs8900a.eth"};
|
||||
|
Loading…
Reference in New Issue
Block a user