Adapt neutrino-mp for CST hardware part #1

- Fix compile for cst hardware
 - Code tested on kronos and apollo hardware, is ok
 - On Nevis hardware will be compiled, but not working
 (no frontend found, segfault)


Origin commit data
------------------
Branch: ni/coolstream
Commit: 403d02ec2b
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2016-01-15 (Fri, 15 Jan 2016)

Origin message was:
------------------
Adapt neutrino-mp for CST hardware part #1

 - Fix compile for cst hardware
 - Code tested on kronos and apollo hardware, is ok
 - On Nevis hardware will be compiled, but not working
  (no frontend found, segfault)


------------------
This commit was generated by Migit
This commit is contained in:
Michael Liebmann
2016-01-15 16:19:43 +01:00
parent 7795008acf
commit 8db42dd287
12 changed files with 52 additions and 11 deletions

View File

@@ -3590,6 +3590,10 @@ void CNeutrinoApp::ExitRun(const bool /*write_si*/, int retcode)
printf("[neutrino] This is the end. exiting with code %d\n", retcode);
Cleanup();
#if HAVE_COOL_HARDWARE
FILE *f = fopen("/tmp/.shutdown", "w");
fclose(f);
#endif
#ifdef __sh__
/* the sh4 gcc seems to dislike someting about openthreads... */
_exit(retcode);