jcs
/subtext
/amendments
/72
telnet: Do atexit from main's atexit handler
jcs made amendment 72 over 2 years ago
--- telnet.c Sat Jan 1 21:47:57 2022
+++ telnet.c Thu Feb 10 15:47:42 2022
@@ -112,7 +112,6 @@ short telnet_local_port;
TCPiopb telnet_exit_pb;
TCPStatusPB telnet_status_pb;
-void telnet_atexit(void);
void telnet_setup(struct session *session);
short telnet_process_input(struct session *session);
void telnet_output_iac(struct session *session, char *iacs, size_t len);
@@ -135,8 +134,6 @@ telnet_init(void)
if (_TCPInit() != noErr)
panic("Failed initializing MacTCP");
-
- _atexit(telnet_atexit);
}
void
--- telnet.h Mon Dec 6 17:33:07 2021
+++ telnet.h Thu Feb 10 15:47:50 2022
@@ -19,6 +19,7 @@
void telnet_init(void);
void telnet_idle(void);
+void telnet_atexit(void);
void telnet_close(struct session *session);
short telnet_output(struct session *session);
short telnet_input(struct session *session);