| 1 |
The config options ModemHangup and ModemAfterCall are ignored because |
| 2 |
linux does not allow I/O on an a TTY after hangup. |
| 3 |
|
| 4 |
--- a/ifcico/openport.c |
| 5 |
+++ b/ifcico/openport.c |
| 6 |
@@ -330,7 +330,9 @@ void closeport(void) |
| 7 |
debug(18,"closing port \"%s\"",S(openedport)); |
| 8 |
fflush(stdin); |
| 9 |
fflush(stdout); |
| 10 |
+#ifndef NO_IO_AFTER_HANGUP |
| 11 |
tty_cooked(); |
| 12 |
+#endif |
| 13 |
#ifdef HAS_DIAL |
| 14 |
close(1); |
| 15 |
undial(0); |
| 16 |
--- a/ifcico/call.c |
| 17 |
+++ b/ifcico/call.c |
| 18 |
@@ -354,8 +354,10 @@ faddr *addr; |
| 19 |
#endif |
| 20 |
{ |
| 21 |
localport(); |
| 22 |
+#ifndef NO_IO_AFTER_HANGUP |
| 23 |
hangup(nlent); |
| 24 |
aftercall(nlent); |
| 25 |
+#endif |
| 26 |
closeport(); |
| 27 |
} |
| 28 |
} |