rather than immediately a signal is received. With this change
we can send a SIGHUP to pppd and actually have it do the
LCP TermReq/TermAck exchange.
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#define RCSID "$Id: tty.c,v 1.23 2004/12/31 11:49:22 paulus Exp $"
+#define RCSID "$Id: tty.c,v 1.24 2005/07/12 01:09:05 paulus Exp $"
#include <stdio.h>
#include <ctype.h>
#include <stdio.h>
#include <ctype.h>
} else {
info("Serial link disconnected.");
}
} else {
info("Serial link disconnected.");
}
+ stop_charshunt(NULL, 0);
exit(0);
}
charshunt_pid = cpid;
exit(0);
}
charshunt_pid = cpid;
- add_notifier(&sigreceived, stop_charshunt, 0);
record_child(cpid, "pppd (charshunt)", charshunt_done, NULL);
return 1;
}
record_child(cpid, "pppd (charshunt)", charshunt_done, NULL);
return 1;
}