diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-02-07 19:41:35 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-02-07 19:41:35 +0000 |
commit | 028419ff4b01df2a6befa6eec5eab4d2d1703b69 (patch) | |
tree | 8616241e513939179d9c2a687aa0dc9433c4c502 | |
parent | 1583b87ae607ab7162a24c7f67091fccc487c1c7 (diff) | |
download | rtmux-028419ff4b01df2a6befa6eec5eab4d2d1703b69.tar.gz rtmux-028419ff4b01df2a6befa6eec5eab4d2d1703b69.tar.bz2 rtmux-028419ff4b01df2a6befa6eec5eab4d2d1703b69.zip |
Comment. Missing OS X headers. +TODO.
-rw-r--r-- | TODO | 2 | ||||
-rw-r--r-- | osdep-darwin.c | 4 | ||||
-rw-r--r-- | osdep-openbsd.c | 4 |
3 files changed, 7 insertions, 3 deletions
@@ -88,3 +88,5 @@ cannot control it per-session - if the child is suspended in window with eg ^Z it should be restarted, or ^Z should be ignored +- look at osdep-openbsd/freebsd code again to try and make it more accurate + and more consistent diff --git a/osdep-darwin.c b/osdep-darwin.c index e8b184f8..9ca0b3dd 100644 --- a/osdep-darwin.c +++ b/osdep-darwin.c @@ -1,4 +1,4 @@ -/* $Id: osdep-darwin.c,v 1.3 2009-01-30 20:14:35 nicm Exp $ */ +/* $Id: osdep-darwin.c,v 1.4 2009-02-07 19:41:35 nicm Exp $ */ /* * Copyright (c) 2009 Joshua Elsasser <josh@elsasser.org> @@ -22,6 +22,8 @@ #include <sys/sysctl.h> #include <stdlib.h> +#include <string.h> +#include <unistd.h> char *get_argv0(int, char *); diff --git a/osdep-openbsd.c b/osdep-openbsd.c index c4a52d23..0dc3e3e1 100644 --- a/osdep-openbsd.c +++ b/osdep-openbsd.c @@ -1,4 +1,4 @@ -/* $Id: osdep-openbsd.c,v 1.9 2009-02-07 19:24:50 nicm Exp $ */ +/* $Id: osdep-openbsd.c,v 1.10 2009-02-07 19:41:35 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -92,7 +92,7 @@ retry: if (p->p_flag & P_SINTR && !(bestp->p_flag & P_SINTR)) bestp = p; if (LIST_FIRST(&p->p_children) == NULL && - LIST_FIRST(&bestp->p_children) != NULL) + LIST_FIRST(&bestp->p_children) != NULL) /* XXX ugh */ bestp = p; } if (bestp != NULL) { |