Changeset 18706
- Timestamp:
- Jul 24, 2008, 9:37:14 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/pcontrol/rconnect.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pcontrol/rconnect.c
r18084 r18706 5 5 6 6 /* connect to host, start the shell: ssh hostname pclient -> command hostname shell 7 stdio is an array of file descriptors (stdio[3]) 7 stdio is an array of file descriptors (stdio[3]) 8 8 */ 9 9 10 10 int rconnect (char *command, char *hostname, char *shell, int *stdio) { 11 11 12 int i , stdin_fd[2], stdout_fd[2], stderr_fd[2], status;12 int i = 0, stdin_fd[2], stdout_fd[2], stderr_fd[2], status; 13 13 int result, waitstatus; 14 14 pid_t pid; … … 56 56 setvbuf (stderr, (char *) NULL, _IONBF, BUFSIZ); 57 57 58 status = execvp (argv[0], argv); 58 status = execvp (argv[0], argv); 59 59 gprint (GP_ERR, "error starting remote shell process\n"); 60 60 pcontrol_exit (60);
Note:
See TracChangeset
for help on using the changeset viewer.
