pcp
[Top] [All Lists]

pcp updates

To: pcp@xxxxxxxxxxx
Subject: pcp updates
From: Nathan Scott <nscott@xxxxxxxxxx>
Date: Mon, 23 Jun 2008 21:34:40 +1000
Sender: pcp-bounce@xxxxxxxxxxx
Changes committed to git://oss.sgi.com:8090/nathans/pcp.git

 install-sh            |   11 ++---
 src/dbpmda/src/pmda.c |   53 +++++-------------------
 src/include/impl.h    |    1 
 src/libpcp/src/pdu.c  |  107
+++++++++++++++++++++++++++++++++++++++++++++-----
 src/libpcp/src/util.c |   44 ++++++++++++++++++++
 5 files changed, 160 insertions(+), 56 deletions(-)

commit d55e0ac51b1cb450877b94dc0a87692b14d8df86
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date:   Mon Jun 23 21:26:59 2008 +1000

    Modify the install-sh script to ensure it never attempts to
    install files with repeated '/' characters in the name, as on
    Windows hosts this is not a noop like on *nix, but rather it
    indicates a network drive.

commit 3951ab7083f3dd0a9f201dea0c6eee8f76237052
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date:   Mon Jun 23 21:23:28 2008 +1000

    Abstract out the fork/exec/pipe process+pipe creation functionality,
    and provide the Win32 code as well.  This makes daemon PMDAs work in
    dbpmda.  It turns out that the send/recv workaround used in libpcp
    earlier (for socket PDU communication) doesn't work for pipes.  But,
    after much hair-pulling and gnashing-of-teeth, an alternative has
    been found - using the native Win32 ReadFile/WriteFile APIs, which
    are able to be used on both types of HANDLE.  Read timeouts are also
    proving a non-obvious area in Win32, as it turns out select(2) can't
    be used on pipes.  Some of the functionality can be achieved using
    the Win32 SetCommTimeouts interface, which this new code is also now
    using in the libpcp pduread routine.




<Prev in Thread] Current Thread [Next in Thread>