Changeset 4575 for trunk/Ohana/src/opihi/pcontrol/rconnect.c
- Timestamp:
- Jul 16, 2005, 11:01:59 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/pcontrol/rconnect.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pcontrol/rconnect.c
r4573 r4575 27 27 argv[2] = shell; 28 28 argv[3] = 0; 29 fprintf (stderr, "%s %s %s\n", argv[0], argv[1], argv[2]);30 29 31 30 pid = fork (); 32 31 if (!pid) { /* must be child process */ 33 fprintf (stderr, "starting remote connection to %s...", hostname);32 if (VerboseMode()) fprintf (stderr, "starting remote connection to %s...", hostname); 34 33 35 34 /* close the other ends of the pipes */ … … 79 78 status = ReadtoIOBuffer (&buffer, stdout_fd[0]); 80 79 p = memstr (buffer.buffer, "CONNECTED", buffer.Nbuffer); 81 /* fprintf (stderr, "%d %d %s\n", i, buffer.Nbuffer, buffer.buffer); */82 80 usleep (20000); 83 81 } 84 fprintf (stderr, "%d cycles to connect\n", i);82 if (VerboseMode()) fprintf (stderr, "%d cycles to connect\n", i); 85 83 if (status == 0) goto pipe_error; 86 84 if (status == -1) goto io_error; 87 85 FreeIOBuffer (&buffer); 88 86 89 fprintf (stderr, "Connected\n");87 if (VerboseMode()) fprintf (stderr, "Connected\n"); 90 88 91 89 stdio[0] = stdin_fd[1]; … … 100 98 101 99 io_error: 102 fprintf (stderr, "timeout while connecting\n");100 if (VerboseMode()) fprintf (stderr, "timeout while connecting\n"); 103 101 goto close_pipes; 104 102
Note:
See TracChangeset
for help on using the changeset viewer.
