snprintf (dirname, 100, "%sttyrec/%s/%s", myconfig->dglroot, username,
ttyrec_filename);
+ atexit(&remove_ipfile);
if ((fscript = fopen (dirname, "w")) == NULL)
{
perror (dirname);
#endif /* !NOSTREAMS */
(void) ioctl (0, TIOCGWINSZ, (char *) &win);
}
+
+void
+remove_ipfile (void)
+{
+ if (ipfile != NULL)
+ unlink (ipfile);
+}
extern void dooutput (void);
extern void doshell (char *);
extern void finish (int);
+extern void remove_ipfile (void);
extern int ttyrec_main(char *username, char *ttyrec_filename);