Changeset 2432 for trunk


Ignore:
Timestamp:
Aug 28, 2011, 2:27:31 PM (13 years ago)
Author:
gah
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/pymolproxy/pymolproxy.c

    r2427 r2432  
    20622062    stats.start = end;
    20632063
    2064     if (write(cout, "PyMol 1.0\n", 10) != 10) {
    2065         ERROR("short write of signature");
    2066     }
    2067    
    20682064    // Main Proxy Loop
    20692065    //  accept tcl commands from socket
    20702066    //  translate them into pyMol commands, and issue them to child proccess
    20712067    //  send images back
     2068
     2069    if (write(cout, "PyMol 1.0\n", 10) != 10) {
     2070        ERROR("short write of signature");
     2071    }
     2072   
    20722073    PollForEvents(&proxy);
    20732074
     
    21142115{
    21152116    Tcl_DString clientCmds;
    2116     struct pollfd pollResults[4];
     2117    struct pollfd pollResults[4], initPoll;
    21172118    int flags;
    21182119
     
    21342135    InitBuffer(&proxyPtr->server, proxyPtr->sout);
    21352136
     2137    initPoll.fd = proxyPtr->sin;
     2138    initPoll.events = POLLOUT;
     2139    if (poll(&initPoll, 1, -1) < 0) {
     2140        ERROR("Initial poll failed: %s", strerror(errno));
     2141        exit(1);
     2142    }
    21362143    Tcl_DStringInit(&clientCmds);
    21372144    for (;;) {
Note: See TracChangeset for help on using the changeset viewer.