]> Creatis software - bbtk.git/commitdiff
#3249 BBTK Bug New Normal - box Exit package std killing application in windows...
authorEduardo DAVILA <davila@ei-ed-606.creatis.insa-lyon.fr>
Fri, 5 Apr 2019 13:20:59 +0000 (15:20 +0200)
committerEduardo DAVILA <davila@ei-ed-606.creatis.insa-lyon.fr>
Fri, 5 Apr 2019 13:20:59 +0000 (15:20 +0200)
packages/std/src/bbstdExit.cxx

index 896c16ab480dfcb54160d39ad49e9cf7c2f35bfc..7b9133d893be246975acbbff19626ee48ca5dc02 100644 (file)
@@ -30,11 +30,17 @@ void Exit::Process()
 //    bbSetOutputOut( bbGetInputIn() );
 //    std::cout << "Output value = " <<bbGetOutputOut() << std::endl;
   
+#if defined(_WIN32)
   int pid=getpid();
   char tmp[256];
   sprintf(tmp,"taskkill /pid %d /F", pid);
   system(tmp);
-//     exit( bbGetInputIn() );
+#elif defined(__GNUC__)
+       exit( bbGetInputIn() );
+#else
+       exit( bbGetInputIn() );
+#endif
+
 }
 //===== 
 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)