Changeset 26


Ignore:
Timestamp:
Jul 24, 2015, 4:52:05 AM (10 years ago)
Author:
Alex Taylor
Message:

Sys2ConnectNamedPipe now returns 1 on success when pipe is in NOWAIT mode.

Location:
rxutilex/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • rxutilex/trunk/rxutilex.c

    r25 r26  
    15871587{
    15881588    HPIPE   hp;
     1589    ULONG   ulState = 0;
    15891590    APIRET  rc;
    15901591
     
    15961597    if (( sscanf( argv[0].strptr, "%8X", &hp )) != 1 ) return ( 40 );
    15971598
     1599    // Determine the pipe mode
     1600    DosQueryNPHState( hp, &ulState );
     1601
    15981602    // Connect the pipe
    15991603    rc = DosConnectNPipe( hp );
    1600     if ( rc != NO_ERROR ) {
     1604
     1605    // A non-blocking pipe returns ERROR_PIPE_NOT_CONNECTED on success
     1606    if ((( ulState & NP_NOWAIT ) && ( rc != ERROR_PIPE_NOT_CONNECTED )) ||
     1607        ( rc != NO_ERROR ))
     1608    {
    16011609        WriteErrorCode( rc, "DosConnectNPipe");
    16021610        MAKERXSTRING( *prsResult, "0", 1 );
  • rxutilex/trunk/rxutilex.def

    r25 r26  
    11LIBRARY     RXUTILEX INITINSTANCE TERMINSTANCE
    22DATA        MULTIPLE NONSHARED
    3 DESCRIPTION '@#Alex Taylor:0.1.2#@##1## 12 Jul 2015 20:07:59     REINFORCE::::::@@Extended REXX Utility Functions'
     3DESCRIPTION '@#Alex Taylor:0.1.2#@##1## 15 Jul 2015 00:14:13     REINFORCE::::::@@Extended REXX Utility Functions'
    44
    55EXPORTS     Sys2LoadFuncs
Note: See TracChangeset for help on using the changeset viewer.