Changeset 13b0ee9 in rtems-testing


Ignore:
Timestamp:
Feb 21, 2014, 8:14:50 AM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
2631321
Parents:
fac5697
git-author:
Sebastian Huber <sebastian.huber@…> (02/21/14 08:14:50)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/24/14 12:44:31)
Message:

gcc/rtems_gcc_main.c: exit() if main returns

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gcc/rtems_gcc_main.c

    rfac5697 r13b0ee9  
    1414#include <sys/types.h>
    1515#include <pthread.h>
     16#include <stdlib.h>
    1617
    1718/*
     
    4041rtems_task Init(rtems_task_argument ignored)
    4142{
     43  int status;
     44
    4245  signal_workaround();
    4346  mkdir( "/tmp", 0777 );
    44   main(argc, argv, NULL);
     47  status = main(argc, argv, NULL);
     48  exit(status);
    4549}
    4650
Note: See TracChangeset for help on using the changeset viewer.