Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Check Makefile to make an archive from gitv1.24-2 | Nathan Straz | 2009-04-17 | 1 | -11/+7 |
| | |||||
* | Fix up spec file to work with proper tarballs | Nathan Straz | 2009-04-17 | 1 | -8/+11 |
| | |||||
* | Bump version for new buildv1.24-1 | Nathan Straz | 2009-04-17 | 1 | -1/+9 |
| | |||||
* | [qarsh] Handle a very broken qarshd | Nathan Straz | 2009-03-27 | 1 | -1/+5 |
| | | | | | | If qarshd is broken enough that it can't load libxml2.so, it won't return an XML packet which we can parse. set_remote_user() really needs to error out of we didn't get a packet back. | ||||
* | [btime] Increase time to wait for response | Nathan Straz | 2009-03-27 | 1 | -1/+1 |
| | | | | | A quarter of a second may be too short for some connections. Increasing it to half a second should make it more reliable. | ||||
* | [btimec] Fail if the host is down | Nathan Straz | 2009-03-27 | 1 | -1/+3 |
| | | | | Make btimec return proper exit codes so it is more useful in scripts. | ||||
* | [qacp] Fix improper free when connect fails | Nathan Straz | 2009-02-05 | 1 | -5/+5 |
| | | | | | Freeing from the middle of an allocated string is not right. Keep a pointer to the strdup so we can free it correctly. | ||||
* | [qarsh] Remove continue which could make qarsh hang | Nathan Straz | 2009-01-08 | 1 | -4/+0 |
| | | | | | | | | | I don't know how, but I found one instance of qarsh looping through the pselect loop with a one second timeout. If the command has exited and the output file descriptors are all closed, we fall onto this continue which prevents us from getting to the break at the end of the loop. The only thing the continue skips over is that check which we really should check, so remove the continue. | ||||
* | [qacp] Check that we have two or more paths | Nathan Straz | 2008-12-01 | 1 | -1/+1 |
| | |||||
* | Force btimed to be an IPv4 service | Nathan Straz | 2008-11-25 | 1 | -0/+1 |
| | | | | | When we tried it out on Fedora 10, it was sending responses to IPv6 addresses and returning ENETUNREACH (Network is unreachable). | ||||
* | Bump version to include pselect speedup.v1.23-1 | Nathan Straz | 2008-11-10 | 1 | -1/+5 |
| | |||||
* | Don't wait until after the pselect to see if we're done. | Nathan Straz | 2008-11-07 | 1 | -7/+8 |
| | | | | | | All the actions which need to be done before we exit are done after the pselect. Waiting until after the next pselect can cause us to sit for a second before we exit, which slows down things which use qarsh. | ||||
* | [man] Add an important missing word to qarsh man page. | Nathan Straz | 2008-11-03 | 1 | -1/+1 |
| | | | | Interactive logins are definitely NOT supported by qarsh. | ||||
* | Bump version to include qarsh fixes.v1.22-1 | Nathan Straz | 2008-10-31 | 1 | -1/+5 |
| | |||||
* | [qarsh] Fix double-free and command hang | Nathan Straz | 2008-10-20 | 1 | -11/+14 |
| | | | | | | | | | | | | | | We need to test all exit conditions at once so we fall back into the hbeat code. I was falling into a case when running "reboot -fin &" where the command would exit, but the sockets would not close and we weren't getting to hbeat() to detect the reboot. In another case which I can't completely explain, we were getting a double-free error from glibc in the qpfree() at the end of run_remote_cmd(). Instead of waiting until the very end to read the exit status, save it off as soon as we get the packet and use cmd_exitted to determine if we have an exit code or if something went horribly wrong. | ||||
* | Bump version to include qacp fix.v1.21-1 | Nathan Straz | 2008-10-14 | 1 | -1/+6 |
| | |||||
* | [qacp] Fix double-free when copying file to file | Nathan Straz | 2008-10-14 | 1 | -1/+1 |
| | | | | | A previous commit added tmprstatp, which wasn't being checked just after it was assigned. | ||||
* | [btimed] Use /proc/uptime when available | Nathan Straz | 2008-10-14 | 1 | -2/+15 |
| | | | | | | | It turns out the boot time being returned to btimec is has not been correct for quite a while. There was probably a change to HZ which isn't reflected properly in _SC_CLK_TCK. This needs some more error checking, but it works for now. | ||||
* | Bump version to include last fix.v1.20-1 | Nathan Straz | 2008-10-10 | 1 | -1/+5 |
| | |||||
* | Fix the memory leak fix. The first attempt broke multiple file copy support. ↵ | Dean Jansa | 2008-10-10 | 1 | -4/+7 |
| | | | | | | sendfiles should be re-written and broken into single file and multi-file cases to make this cleaner. Signed-off-by: Dean Jansa <djansa@redhat.com> | ||||
* | Bump version to include latest fixes.v1.19-1 | Nathan Straz | 2008-10-10 | 1 | -2/+7 |
| | |||||
* | typo fix | Dean Jansa | 2008-09-23 | 1 | -1/+1 |
| | |||||
* | Fix Copyright lines. vi sure doesn't like that copyright symbol in my term | Dean Jansa | 2008-09-23 | 3 | -3/+3 |
| | |||||
* | Plug some memory leaks | Dean Jansa | 2008-09-23 | 3 | -13/+37 |
| | |||||
* | Fix fallback buffer sizes. What was I thinking? | Nate Straz | 2008-09-23 | 1 | -1/+1 |
| | |||||
* | Add note to qarsh man page about closing file descriptors on backgrounded | Nate Straz | 2008-09-23 | 1 | -0/+5 |
| | | | | commands so qarsh exits. | ||||
* | 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. | ||||
* | Add man pages to the build.v1.18-2 | Nate Straz | 2008-09-23 | 2 | -3/+19 |
| | |||||
* | Add man pages for all commands. | Nate Straz | 2008-09-23 | 5 | -0/+127 |
| | |||||
* | Bump version again to include fix for shortened output.v1.18-1 | Nate Straz | 2008-09-23 | 1 | -1/+4 |
| | |||||
* | Make sure qarsh waits for all output from the remote host. | Nate Straz | 2008-09-23 | 1 | -1/+1 |
| | |||||
* | Bump version to include new features.v1.17-1 | Nate Straz | 2008-09-23 | 1 | -2/+7 |
| | |||||
* | Fix up copyright dates. | Nate Straz | 2008-09-23 | 2 | -2/+2 |
| | |||||
* | 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. | ||||
* | Don't print out the debug syslog messages unless you also use the -d option. | Nate Straz | 2008-09-23 | 1 | -3/+8 |
| | | | | For those that can't configure syslog properly while debugging other things. | ||||
* | Nate made a good point, we should not fail if we can't chdir. ssh warns, ↵ | Dean Jansa | 2008-09-23 | 1 | -5/+1 |
| | | | | but lets you in. Don't bother checking the return of chdir(). | ||||
* | chdir() to users home dir | Dean Jansa | 2008-09-23 | 1 | -0/+8 |
| | |||||
* | 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. | ||||
* | Try to reduce the number of times we look up a hostname by storing | Nate Straz | 2008-09-23 | 1 | -1/+15 |
| | | | | the address in the hbeat struct instead of the name. | ||||
* | Add libxml2-devel requires since it seems to be missing from the RHEL5 buildv1.16-2 | Nate Straz | 2008-09-23 | 1 | -1/+2 |
| | | | | roots. | ||||
* | Bump version for new buildv1.16-1 | Nate Straz | 2008-09-23 | 1 | -1/+5 |
| | |||||
* | Update copyright dates. | Nate Straz | 2008-09-23 | 7 | -7/+7 |
| | |||||
* | Switch to using a select with a timeout instead of a loop | Nate Straz | 2008-09-23 | 2 | -16/+21 |
| | | | | | | of recvfroms and sleeps in btime(). This makes it easier to tune how long to wait for a heartbeat. Now I can get heartbeats over my vpn connection. | ||||
* | Reduce the amount of rounding. Since btimed doesn't go away anymore, we ↵ | Nate Straz | 2008-09-23 | 1 | -2/+2 |
| | | | | don't need to round so much. | ||||
* | Bump qarsh version for next buildv1.15-1 | Nate Straz | 2008-09-23 | 1 | -1/+4 |
| | |||||
* | We need to reset the signal handlers and sigmask so the raise() works. | Nate Straz | 2008-09-23 | 1 | -0/+21 |
| | |||||
* | Bump the version for the next build.v1.14-1 | Nate Straz | 2008-09-23 | 1 | -1/+4 |
| | |||||
* | Every time btimed is restarted we could get a slightly different boot time. | Nate Straz | 2008-09-23 | 1 | -7/+2 |
| | | | | | | | | qarsh is the primary user of btimed, but it only sends a btime request when it hasn't received output for 5 seconds. If output is streaming for more than 30 seconds, btimed would exit. When the output quiets down again and btimed starts up, it could get a slightly different uptime and round in the opposite direction. |