Ticket #287: system.diff

File system.diff, 644 bytes (added by KO Myung-Hun, 10 years ago)

patch for system()

  • src/emx/src/lib/process/system.c

    diff --git a/src/emx/src/lib/process/system.c b/src/emx/src/lib/process/system.c
    index d36dee0..c5680cb 100755
    a b int _STD(system)(const char *pszCmdLine)  
    3434        LIBCLOG_MSG("using shell: %s\n", pszCmdLine);
    3535        if (pszCmdLine == 0)
    3636            rc = access(szShell, F_OK) == 0;
    37         else if (*pszCmdLine)
     37        else if (!*pszCmdLine)
    3838            rc = spawnlp(P_WAIT, szShell, &szShell[offShellArg], (void *)NULL);
    3939        else
    4040            rc = spawnlp(P_WAIT, szShell, &szShell[offShellArg], szCmdLineOpt, pszCmdLine, (void *)NULL);