Skip to content

Commit

Permalink
- Made System.spawn return 0 on success in Linux
Browse files Browse the repository at this point in the history
- Added sane minimum width/height for OMPlot


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@8552 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Apr 8, 2011
1 parent 8fa923c commit 98e8aef
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Compiler/runtime/systemimpl.c
Expand Up @@ -560,10 +560,7 @@ int SystemImpl__spawnCall(const char* path, const char* str)
#if defined(__MINGW32__) || defined(_MSC_VER)
ret_val = status;
#else
if (WIFEXITED(status)) /* Did the process exit normally? */
ret_val = WEXITSTATUS(status); /* Fetch the actual exit status */
else
ret_val = -1;
ret_val = 0;
#endif

if (debug) {
Expand Down

0 comments on commit 98e8aef

Please sign in to comment.