Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Let's wait one second instead of spinning hard on pselect(). | Nate Straz | 2008-09-23 | 1 | -1/+1 |
| | |||||
* | Bob found a problem with commands that exit quickly, the pselect times out so | Nate Straz | 2008-09-23 | 1 | -6/+10 |
| | | | | quickly that we do a hbeat then go back to the pselect. | ||||
* | Make sure qarsh waits for all output from the remote host. | Nate Straz | 2008-09-23 | 1 | -1/+1 |
| | |||||
* | Fix up copyright dates. | Nate Straz | 2008-09-23 | 1 | -1/+1 |
| | |||||
* | Add write file descriptors to main select() call. | Nate Straz | 2008-09-23 | 1 | -21/+35 |
| | | | | | | | | When running rsync on an existing directory structure, rsync may be too busy to read everything that qarsh is writing to it from the remote rsync daemon. Create a buffer for each of stdin, stdout, and stderr and keep it around until we are able to write it, holding off further reads until it can be written. We still don't handle partial writes. | ||||
* | We don't need to check the heartbeat anymore when the command | Nate Straz | 2008-09-23 | 1 | -4/+2 |
| | | | | has exitted and we've processed all the output. | ||||
* | Increase the buffer size we use to read output from the host. This should | Nate Straz | 2008-09-23 | 1 | -6/+7 |
| | | | | | help get all output before we exit. There is still a race if the cmdexit packet returns before all output where we could truncate output. | ||||
* | Update copyright dates. | Nate Straz | 2008-09-23 | 1 | -1/+1 |
| | |||||
* | We need to reset the signal handlers and sigmask so the raise() works. | Nate Straz | 2008-09-23 | 1 | -0/+21 |
| | |||||
* | Push processing of the remote command status to main() so it can be | Nate Straz | 2008-09-23 | 1 | -9/+10 |
| | | | | | reproduced properly by qarsh. Return 127 as an exit code on internal error cases. | ||||
* | Add copyright notices and GPL header | Nate Straz | 2008-09-23 | 1 | -0/+17 |
| | |||||
* | When no args were given, argv[0] would return NULL and the program | Nate Straz | 2008-09-23 | 1 | -7/+6 |
| | | | | | name in the usage output would show "(null)." qarsh isn't called anything else so just hard code qarsh in the usage message. | ||||
* | Fix a minor whitespace issue | Nate Straz | 2008-09-23 | 1 | -2/+2 |
| | |||||
* | rsync puts the hostname before the -l <user> arg so we need to act more like | Nate Straz | 2008-09-23 | 1 | -4/+19 |
| | | | | | | OpenSSH. After they get to the end of the args and they haven't gotten a host name yet they chew the next arg as the hostname and restart parsing the command line. Now we do too. | ||||
* | Doc the QARSH_TIMEOUT env var | Dean Jansa | 2008-09-23 | 1 | -0/+1 |
| | |||||
* | Make error messages more useful when there are connection issues | Nate Straz | 2008-09-23 | 1 | -4/+11 |
| | |||||
* | Add a newline to the no heartbeat message | Nate Straz | 2008-09-23 | 1 | -1/+1 |
| | |||||
* | Instead of ignoring SIGTTIN, ignore stdin if it is a tty. | Nate Straz | 2008-09-23 | 1 | -7/+5 |
| | |||||
* | Ignore the SIGTTIN signal so we don't get caught in a read(0, ...)-SIGTTINv1.3-2 | Nate Straz | 2008-09-23 | 1 | -0/+6 |
| | | | | infinite loop. | ||||
* | Set a flag when a command finishes rather than exiting the select loop. | Dean Jansa | 2008-09-23 | 1 | -3/+15 |
| | | | | There may still be output to be read even after the command completed. | ||||
* | Use hbeat interface which has been pulled out into its own | Dean Jansa | 2008-09-23 | 1 | -66/+21 |
| | | | | set of files. | ||||
* | Fix a bug in heartbeat(). Need to reset host state when we got some IO from ↵ | Dean Jansa | 2008-09-23 | 1 | -10/+11 |
| | | | | the host, and we only want to check for timeout if we were already in HOST_QUIET | ||||
* | Rework heartbeating to run a small state machine, and change from | Dean Jansa | 2008-09-23 | 1 | -30/+77 |
| | | | | | | | | -m missed to -t timeout on the command line. New env var - QARSH_TIMEOUT can be set to change the default timeout. Command line -t overrides this env var. | ||||
* | Merge qarsh revisions 1727:1738 from sistina-test branch djansa-qarsh. | Nate Straz | 2008-09-23 | 1 | -8/+81 |
| | |||||
* | Flatten the qarsh tree. | Nate Straz | 2008-09-23 | 1 | -0/+365 |