*** empty log message ***
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4334 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
d21895aec4
commit
9ac6ff7b80
@ -14,15 +14,21 @@
|
|||||||
#define BSD_SELECT // use Berkley Sockets select
|
#define BSD_SELECT // use Berkley Sockets select
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <sys\ioctl.h>
|
|
||||||
#include <sys\types.h>
|
#include <sys\types.h>
|
||||||
#include <sys\socket.h>
|
|
||||||
#include <utils.h>
|
#include <utils.h>
|
||||||
#include <sys\time.h>
|
#include <sys\time.h>
|
||||||
#include <in.h>
|
#include <in.h>
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#include <nerrno.h>
|
#include <nerrno.h>
|
||||||
|
#if defined(__VISAGECPP__) && __IBMCPP__ < 400
|
||||||
|
#include <socket.h>
|
||||||
|
#include <ioctl.h>
|
||||||
|
#include <select.h>
|
||||||
|
#else
|
||||||
|
#include <sys\socket.h>
|
||||||
|
#include <sys\ioctl.h>
|
||||||
#include <sys\select.h>
|
#include <sys\select.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -160,7 +160,7 @@ bool wxShell(
|
|||||||
SData.PgmName = zShell;
|
SData.PgmName = zShell;
|
||||||
|
|
||||||
sInputs = "/C " + rCommand;
|
sInputs = "/C " + rCommand;
|
||||||
SData.PgmInputs = NULL; //(BYTE*)sInputs.c_str();
|
SData.PgmInputs = (BYTE*)sInputs.c_str();
|
||||||
SData.TermQ = 0;
|
SData.TermQ = 0;
|
||||||
SData.Environment = 0;
|
SData.Environment = 0;
|
||||||
SData.InheritOpt = SSF_INHERTOPT_SHELL;
|
SData.InheritOpt = SSF_INHERTOPT_SHELL;
|
||||||
@ -177,7 +177,7 @@ bool wxShell(
|
|||||||
SData.ObjectBuffLen = (ULONG)sizeof(achObjBuf);
|
SData.ObjectBuffLen = (ULONG)sizeof(achObjBuf);
|
||||||
|
|
||||||
rc = ::DosStartSession(&SData, &ulSessID, &vPid);
|
rc = ::DosStartSession(&SData, &ulSessID, &vPid);
|
||||||
if (rc == 0)
|
if (rc == 0 || rc == 457) // NO_ERROR or SMG_START_IN_BACKGROUND
|
||||||
{
|
{
|
||||||
PTIB ptib;
|
PTIB ptib;
|
||||||
PPIB ppib;
|
PPIB ppib;
|
||||||
|
Loading…
Reference in New Issue
Block a user