Changeset 10102 for trunk/psModules/src/detrend/psPipe.c
- Timestamp:
- Nov 20, 2006, 7:50:17 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/detrend/psPipe.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/detrend/psPipe.c
r9432 r10102 40 40 psMemSetDeallocator(pipe, (psFreeFunc) psPipeFree); 41 41 42 pipe-> stdin = 0;43 pipe-> stdout = 0;44 pipe-> stderr = 0;42 pipe->fd_stdin = 0; 43 pipe->fd_stdout = 0; 44 pipe->fd_stderr = 0; 45 45 return (pipe); 46 46 } … … 134 134 135 135 pipe->pid = pid; 136 pipe-> stdin = stdin_fd[1];137 pipe-> stdout = stdout_fd[0];138 pipe-> stderr = stderr_fd[0];136 pipe->fd_stdin = stdin_fd[1]; 137 pipe->fd_stdout = stdout_fd[0]; 138 pipe->fd_stderr = stderr_fd[0]; 139 139 140 140 return (pipe); … … 153 153 154 154 close_status = true; 155 if (close (pipe-> stdin) != 0) {155 if (close (pipe->fd_stdin) != 0) { 156 156 psError(PS_ERR_IO, true, "error closing the pipe stdin (pid %d, error %s)\n", pipe->pid, strerror(errno)); 157 157 close_status = false; 158 158 } 159 if (close (pipe-> stdout) != 0) {159 if (close (pipe->fd_stdout) != 0) { 160 160 psError(PS_ERR_IO, true, "error closing the pipe stdout (pid %d, error %s)\n", pipe->pid, strerror(errno)); 161 161 close_status = false; 162 162 } 163 if (close (pipe-> stderr) != 0) {163 if (close (pipe->fd_stderr) != 0) { 164 164 psError(PS_ERR_IO, true, "error closing the pipe sterr (pid %d, error %s)\n", pipe->pid, strerror(errno)); 165 165 close_status = false;
Note:
See TracChangeset
for help on using the changeset viewer.
