Custom Query (301 matches)
Results (94 - 96 of 301)
Ticket | Resolution | Summary | Owner | Reporter |
---|---|---|---|---|
#177 | fixed | QProcess::startDetached() fails to pass arguments | ||
Description |
In some cases arguments are not passed correctly to the child process. The reason is than QByteArray::size() does not count the trailing zero. Thus the argument strings might be unterminated. Index: qprocess_os2.cpp =================================================================== --- qprocess_os2.cpp (revision 758) +++ qprocess_os2.cpp (working copy) @@ -993,12 +993,12 @@ // DosStartSession() as it cannot work with high memory PSZ pgmNameLow = (PSZ)::_lmalloc(::strlen(programReal) + 1); ::strcpy(pgmNameLow, programReal); - PSZ argsLow = (PSZ)::_lmalloc(args.size()); - ::memcpy(argsLow, args, args.size()); + PSZ argsLow = (PSZ)::_lmalloc(args.size() + 1); + ::memcpy(argsLow, args, args.size() + 1); PSZ envLow = 0; if (!env.isEmpty()) { - envLow = (PSZ)::_lmalloc(env.size()); - ::memcpy(envLow, env, env.size()); + envLow = (PSZ)::_lmalloc(env.size() + 1); + ::memcpy(envLow, env, env.size() + 1); } #else PSZ pgmNameLow = (PSZ)programReal; |
|||
#71 | fixed | QProcess::startDetached() doesn't work | ||
Description |
Since P_DETACH isn't supported by kLIBC's spawnvpe(), QProcess::startDetached() that relies on that doesn't work. This needs to be fixed, possibly by calling DosExecPgm? directly. |
|||
#85 | wontfix | QProcess: Support P_SESSION | ||
Description |
Currently, the necessary P_SESSION and P_DETACH functionality in QProcess is implemented using workarounds which proxy the calls through "cmd.exe /c" (see #72). This is done so because kLIBC 0.6.3 doesn't support P_SESSION and P_DETACH. Later, we plan to apply a patch to kLIBC that adds support for these execution modes and make use of them in QProcess. This defect is to track this plan. |