2003-06-04 23:05 manoj * Makefile: 0.0.25 2003-04-23 12:40 manoj * getlock.c: Drop the i_run_program flag, since it is always true by the time it is checked (thanks to liberal use of exit() elsewhere). This also eliminates a "no return from non-void function" warning on one version of gcc. 2003-03-31 02:41 manoj * getlock.c: This style appeals to me more. Maybe I just like throwing around function pointers. 2003-03-28 23:29 manoj * Makefile: 0.0.24 2003-03-28 23:25 manoj * getlock.c: Remove unnecessary extra check for unprovided argument. 2003-03-26 22:21 manoj * getlock.c: Don't bother to fork() a seperate process if the called program can hold the lock fd 2003-03-01 17:23 manoj * Makefile, getlock.c: getlock, a tool similar to djb's setlock, but with added support for close-on-exec of the lock file, so that lingering background processes don't hold the lock. 2002-10-14 01:54 manoj * Makefile: 0.0.23 2002-10-14 01:02 manoj * babysit.c: After waiting a second, clear the flag saying we need to wait a second. 2002-10-08 23:59 manoj * Makefile: 0.0.22 2002-10-08 23:56 manoj * unixlisten.c: strlen and strcpy need #include 2002-10-05 13:30 manoj * babysit.c: Oops, I left debugging delay in 2002-10-05 13:12 manoj * babysit.c: Let signals in during post-fork 1-second sleep so we can catch SIGCHLD, so we don't leave around zombies if the process dies after < 1 second. 2002-10-05 00:35 manoj * babysit.c: Revert nanosleep -> sleep change. I want to enable signals here, but doing so without the loop ensuring a 1-second sleep could result in babysit running away with CPU. 2002-10-02 00:27 manoj * Makefile: Don't put CVS directory in tarball. I might change my mind on this; the dir is useful to confirm version numbers of files. 2002-09-23 00:50 manoj * babysit.c: Don't need the fancy nanosleep stuff to sleep 1 second. sleep only sleeps less than a second when SIGALRM monkeying is going on (which we don't) and if we get a signal (and we're masking signals). 2002-09-18 00:56 manoj * Makefile: 0.0.21 2002-09-18 00:54 manoj * Makefile, sockaccept.c, tcpaccept.c: Rename tcpaccept to sockaccept, since it can be used both for tcp and unix-domain sockets. Probably a bit premature since I haven't actually tested unixlisten yet, but why not. 2002-09-18 00:43 manoj * Makefile: A rule to roll distribution tarballs for me. 2002-09-18 00:04 manoj * Makefile, mktool.spec.in: In the Makefile, move the -g from DEBUG to OPT. -g affects optimization, and I expect it to be changed along with the other optimization flags. The spec file change takes advantage of this. 2002-09-17 23:51 manoj * babysit.c: After processing each event, if the child isn't running, babysit now checks if the directory it runs out of still exists. If not, complain and exit, since babysit is now uncontrollable and will never be able to spawn a new ./run child. 2002-09-16 21:57 manoj * babysit.c: Single Unix says to use , not 2002-09-13 22:37 manoj * mktool.spec.in: Drop the -pedantic from the spec file like I dropped it from the Makefile 2002-09-13 02:17 manoj * Makefile: 0.0.20 2002-09-13 02:16 manoj * babysit.c: waitpid returning -1 is fine if it sets errno == ECHILD 2002-09-13 02:09 manoj * Makefile: 0.0.19 2002-09-13 02:08 manoj * babysit.c: The SIGCHLD handler should deal with the possibility of getting more than one child death per signal, like tcpaccept does. 2002-09-13 01:23 manoj * Makefile: 0.0.18 2002-09-11 00:55 manoj * babysit.c, bsc.c, bsok.c, bswait.c, tcpaccept.c: Various consting and changes to function prototypes 2002-09-09 23:47 manoj * Makefile: 0.0.17 2002-09-09 23:46 manoj * Makefile: Since -Wall (and I think -Werror) are specific to gcc, and since I don't want to take those flags out of the default build just yet, make gcc the default compiler. 2002-09-09 22:06 manoj * babysit.py: buhbye 2002-09-09 21:38 manoj * Makefile, sigterm_hack.c: Drop sigterm_hack, at least for now. 2002-09-09 21:37 manoj * bsc.c: Drop irrelevant comment. It came from the file I copied to make this .c file. 2002-09-07 18:04 manoj * bsc.c: Forgot to pass argv[0] to usage function 2002-09-07 18:01 manoj * Makefile, bsc.c, bsc.py: Reimplement bsc from scratch in C. 2002-08-30 01:39 manoj * Makefile: 0.0.16 2002-08-30 00:37 manoj * unixlisten.c: unixlisten only needs one 1 before the command, not 2, so don't error out unnecessarily 2002-08-30 00:35 manoj * unixlisten.c: Don't fail if unlink() fails, because maybe the unix-domain socket was never created before. Any other errors can be caught by the bind right after this. 2002-08-30 00:26 manoj * tcplisten.c: Check for errors from inet_aton() 2002-08-30 00:17 manoj * tcplisten.c, unixlisten.c: Since fcntl() was taken out (didn't need FD_CLOEXEC), don't need either 2002-08-29 23:48 manoj * unixlisten.c: Delete anything getting in the way of my unix-domain socket 2002-08-29 23:47 manoj * tcpaccept.c: Don't need #include 2002-08-29 00:25 manoj * Makefile: 0.0.15 2002-08-29 00:09 manoj * Makefile, unixlisten.c: A little experiment: unixliste, which is like tcplisten except that it listens on a Unix-domain socket. Can also be used with tcpaccept (which ought to be renamed if this experiment continues). 2002-08-28 23:57 manoj * tcplisten.c: Don't need the FD_CLOEXEC of the server_socket, since we already close it later on. 2002-08-23 00:57 manoj * Makefile: Oops, the .c's were supposed to be .o's. Speeds compiles by a few milliseconds. 2002-08-22 23:13 manoj * Makefile: stdlib.h breaks gcc -pedantic on FreeBSD (4.6-STABLE), and -pedantic isn't all that useful anyway, so just get rid of it 2002-08-22 23:10 manoj * Makefile: Eliminate "LDFLAGS=" line that did nothing 2002-08-22 23:07 manoj * Makefile: Pointless optimization. Make better use of implicit rules, and use .o's instead of .c's to save a few milliseconds during the build. 2002-08-13 23:18 manoj * Makefile, envuidgid.c: Remove envuidgid. I wrote it back before the redesign of tcpserver made it unnecessary. 2002-08-13 00:00 manoj * Makefile, bswait.c: Added new program called "bswait". Waits for a babysit to exit before exiting itself. 2002-08-10 18:18 manoj * execlp.c: Eliminate local variable 'new_argv' 2002-08-10 18:17 manoj * mktool.spec.in: Add LDFLAGS=-s 2002-08-08 23:30 manoj * Makefile: 0.0.14 2002-08-08 23:26 manoj * file_lock.c: Whack unused "trylock_it" 2002-08-08 23:22 manoj * Makefile: Make install target's cp command more compatible with other systems like FreeBSD 2002-08-08 23:17 manoj * bsc.py: Fix case when you try to run bsc on a dir with no babysit 2002-08-08 13:52 manoj * Makefile: 0.0.13 2002-08-08 13:42 manoj * babysit.py: True/False => 1/0 to work on Python 2.2. I don't know if I like it, but it's not a big deal for now. 2002-08-06 17:43 manoj * Makefile: Clean up Python turds 2002-08-06 14:19 manoj * babysit.c: At dlr's request, flesh out the chdir(service_dir) error message a bit. Eventually/Hopefully, the rest of the code's error messages should be fleshed out like this since it's not a private project anymore. 2002-08-05 21:58 manoj * Makefile, mktool.spec, mktool.spec.in: Make mktool.spec generated. It's fun! 2002-08-05 21:46 manoj * babysit.py: No status() method. There is running(), though 2002-08-05 21:11 manoj * mktool.spec: 0.0.11 2002-08-05 21:10 manoj * babysit.py: Simple (well, simpler) Python interface to babysit 2002-08-05 17:05 manoj * bsc.py: Make clear that the sys.exit(100) doesn't apply if we've raised the os.error 2002-08-05 17:04 manoj * bsc.py: A little less verbose and just as clear 2002-08-05 16:59 manoj * bsc.py: Don't bother creating the control string if we can't talk to the babysit process anyway 2002-08-05 16:50 manoj * bsc.py: Move os.write out of the exception check for BabysitNotRunning 2002-08-04 13:20 manoj * bsc.py: Found a decent way to rethrow exceptions, use it. 2002-08-02 15:26 manoj * Makefile, sigterm_hack.c: Add in sigterm_hack, which is an adapter for processes (like silly Java) that don't take SIGTERM, and need to run a script to be stopped. 2002-08-02 15:24 manoj * INSTALL: Short install instructions 2002-08-02 14:02 manoj * babysit.c: Add descriptive detail to comment about waitpid, and play with spacing a bit. 2002-08-02 14:01 manoj * babysit.c: Remove unneeded #include 2002-08-01 15:17 manoj * babysit.c: No need to zero out keep_wanting_new_child when want_child is 0 2002-08-01 14:57 manoj * bsc.py: Eliminate extra parentheses 2002-08-01 14:04 manoj * Makefile, babysit.c, babysit.h, bsc.py, bsok.c, envuidgid.c, execlp.c, file_lock.c, file_lock.h, mktool.spec, setonlygid.c, setonlygid.h, setugid.c, signal_action.c, signal_action.h, tcpaccept.c, tcplisten.c: Initial commit, mktool 0.0.10