Changeset - 4e98a910ab59
[Not reviewed]
default
0 1 0
ethanzonca@localhost.localdomain - 16 years ago 2009-06-30 20:31:44
ethanzonca@localhost.localdomain
Extremely minor fix
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/server/distrend.c
Show inline comments
 
@@ -109,25 +109,25 @@ char *execargv[] =
 
"\"echo hello from ${HOSTNAME}\"",
 
(char *)NULL
 
 };
 
size_t readlen;
 
fprintf(stderr, "execio_open:", execio_open(&testrem, "ssh", execargv));
 
buf[9] = '\0'; // null-terminating the array...
 
while(!execio_read(testrem, buf, 9, &readlen)) // What's with the readlen stuff?
 
  {
 
    if(readlen > 9) {
 
      fprintf(stderr, "Something is terribly wrong!\n");
 
    }
 
   buf[readlen] = '\0'; // Null-terminating the end of it again based on how large the data is?
 
   fprintf(stderr, "read \"&s\"\n", buf);
 
   fprintf(stderr, "read \"%s\"\n", buf);
 
  }
 
execio_close(testrem);
 

	
 
///////////////////////// SLAVE ///////////////////////////////
 

	
 
/*
 
Slave listens on server for a command in the format of each function...
 
We need if's for returns... ==> watchdog
 
*/
 

	
 

	
 
// Executors
0 comments (0 inline, 0 general)