* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#define RCSID "$Id: tty.c,v 1.10 2003/02/24 11:29:53 fcusack Exp $"
+#define RCSID "$Id: tty.c,v 1.11 2003/03/03 05:11:46 paulus Exp $"
#include <stdio.h>
#include <ctype.h>
void disconnect_tty __P((void));
void tty_close_fds __P((void));
void cleanup_tty __P((void));
-void tty_do_send_config __P((int, u_int32_t, int, int));
+int tty_do_send_config __P((int, u_int32_t, int, int));
static int setdevname __P((char *, char **, int));
static int setspeed __P((char *, char **, int));
* tty_do_send_config - set transmit-side PPP configuration.
* We set the extended transmit ACCM here as well.
*/
-void
+int
tty_do_send_config(mtu, accm, pcomp, accomp)
int mtu;
u_int32_t accm;
int pcomp, accomp;
{
tty_set_xaccm(xmit_accm);
- tty_send_config(mtu, accm, pcomp, accomp);
+ return tty_send_config(mtu, accm, pcomp, accomp);
}
/*
{
int cpid;
- cpid = fork();
+ cpid = safe_fork();
if (cpid == -1) {
error("Can't fork process for character shunt: %m");
return 0;
if (getuid() != uid)
fatal("setuid failed");
setgid(getgid());
- sys_close();
if (!nodetach)
log_to_fd = -1;
charshunt(ifd, ofd, record_file);