Changeset 1814
- Timestamp:
- Jul 14, 2010, 5:40:39 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/pymolproxy/pymolproxy.c
r1811 r1814 103 103 static FILE *flog; 104 104 static int debug = 0; 105 #ifdef notdef106 static long _flags = 0;107 #endif108 105 static FILE *scriptFile; 109 106 static int savescript = 0; … … 635 632 } 636 633 637 638 #ifdef notdef639 static int640 ReadImage(PymolProxy *proxyPtr, int fd, size)641 {642 int result, total, left;643 644 for( total = 0, left = size; left > 0; left -= result) {645 result = read(fd, buffer+total, left);646 647 if (result > 0) {648 total += result;649 continue;650 }651 652 if ((result < 0) && (errno != EAGAIN) && (errno != EINTR)) {653 trace("Error reading fd(%d), %d/%s.", fd, errno,654 strerror(errno));655 break;656 }657 658 result = 0;659 }660 return total;661 }662 #endif663 664 634 static int 665 635 Pymol(PymolProxy *proxyPtr, const char *format, ...) … … 1123 1093 free(data); 1124 1094 Pymol(proxyPtr, "load %s,%s,%d\n", fileName, name, state); 1125 #ifdef notdef1126 Pymol(proxyPtr, "zoom complete=1\n");1127 #endif1128 1095 } 1129 1096 return proxyPtr->status; … … 2027 1994 fcntl(proxyPtr->clientInput, F_SETFL, flags|O_NONBLOCK); 2028 1995 2029 #ifdef notdef2030 flags = fcntl(proxyPtr->serverOutput, F_GETFL);2031 fcntl(proxyPtr->serverOutput, F_SETFL, flags|O_NONBLOCK);2032 #endif2033 2034 1996 pollResults[0].fd = proxyPtr->clientOutput; 2035 1997 pollResults[1].fd = proxyPtr->serverOutput;
Note: See TracChangeset
for help on using the changeset viewer.