diff options
author | Nalin Dahyabhai <nalin@src.gnome.org> | 2002-12-10 22:36:29 +0000 |
---|---|---|
committer | Nalin Dahyabhai <nalin@src.gnome.org> | 2002-12-10 22:36:29 +0000 |
commit | 18d3d0fbdb83a33107b92d77963a9e99e652e9df (patch) | |
tree | 27b16e15126452b7700a1f1c9dbb9779591dd371 /src/pty.c | |
parent | dd56e470ff18ce4e5c1d924c13b334a147465304 (diff) |
centralize buffer length sanity checks, add some utility functions forvte_0_10_6
* src/buffer.c, src/buffer.h: centralize buffer length sanity checks, add some
utility functions for stuffing things into buffers and pulling them
back out.
* src/debug.c, src/debug.h: add a lifecycle debug class, for tracking
down initialization order weirdness.
* src/pty.c: try to check that we can run the pty helper before trying to run
it, to avoid SIGPIPE failures when it's not installed.
* src/vte.c: never grab focus -- let the shell app deal with it. Return TRUE
from mouse motion and press/release events to keep them from being
passed up.
Diffstat (limited to 'src/pty.c')
-rw-r--r-- | src/pty.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -787,6 +787,10 @@ static gboolean _vte_pty_start_helper(void) { int i, tmp[2], tunnel; + /* Sanity check. */ + if (access(LIBEXECDIR "/gnome-pty-helper", X_OK) != 0) { + return FALSE; + } /* Create a communication link for use with the helper. */ tmp[0] = open("/dev/null", O_RDONLY); if (tmp[0] == -1) { |