Move functions and symbols shared between exec.c and exec_pty.c

into sudo_exec.h.
This commit is contained in:
Todd C. Miller
2010-06-16 16:46:56 -04:00
parent ede8a5fad3
commit d018936b4e
6 changed files with 46 additions and 17 deletions

View File

@@ -56,6 +56,7 @@
#include <termios.h>
#include "sudo.h"
#include "sudo_exec.h"
#include "sudo_plugin.h"
#include "sudo_plugin_int.h"
@@ -87,10 +88,6 @@ struct io_buffer {
char buf[16 * 1024];
};
/* shared with pty.c */
extern sig_atomic_t recvsig[NSIG];
extern void handler(int s);
static char slavename[PATH_MAX];
static int foreground;
static int io_fds[6] = { -1, -1, -1, -1, -1, -1};