- Timestamp:
- Aug 28, 2011, 2:27:31 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/pymolproxy/pymolproxy.c
r2427 r2432 2062 2062 stats.start = end; 2063 2063 2064 if (write(cout, "PyMol 1.0\n", 10) != 10) {2065 ERROR("short write of signature");2066 }2067 2068 2064 // Main Proxy Loop 2069 2065 // accept tcl commands from socket 2070 2066 // translate them into pyMol commands, and issue them to child proccess 2071 2067 // send images back 2068 2069 if (write(cout, "PyMol 1.0\n", 10) != 10) { 2070 ERROR("short write of signature"); 2071 } 2072 2072 2073 PollForEvents(&proxy); 2073 2074 … … 2114 2115 { 2115 2116 Tcl_DString clientCmds; 2116 struct pollfd pollResults[4] ;2117 struct pollfd pollResults[4], initPoll; 2117 2118 int flags; 2118 2119 … … 2134 2135 InitBuffer(&proxyPtr->server, proxyPtr->sout); 2135 2136 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 } 2136 2143 Tcl_DStringInit(&clientCmds); 2137 2144 for (;;) {
Note: See TracChangeset
for help on using the changeset viewer.