#include <locale.h>
#endif
-#ifdef TOOLTALK
-#include TT_C_H_FILE
-#endif
-
/* For PATH_EXEC */
#include <sxe-paths.h>
size_t edlen = XSTRING_LENGTH(Vexec_directory);
char mdocfile[edlen+countof(make_docfile_prog)];
char **newargv = xnew_array_and_zero(char*, c), **p;
+ int ret = -1;
/* set up the program call */
xstrncpy(mdocfile,
for (char **o = p, **n = &newargv[1]; *o;) {
*n++ = *o++;
}
- return execv(mdocfile, newargv);
+ ret = execv(mdocfile, newargv);
+ xfree(newargv);
+ return ret;
}
static inline void*
close(1);
if (open(term, O_RDWR | OPEN_BINARY, 2) < 0)
fatal("%s: %s", term, strerror(errno));
- dup(0);
+ if( dup(0) < 0)
+ fatal("dup failed %s: %s", term, strerror(errno));
if (!isatty(0))
fatal("%s: not a tty", term);
syms_of_free_hook();
#endif
-#ifdef TOOLTALK
- syms_of_tooltalk();
-#endif
-
#ifdef SUNPRO
syms_of_sunpro();
#endif
#endif /* HAVE_CANNA */
#endif /* MULE */
-#ifdef TOOLTALK
- vars_of_tooltalk();
-#endif
-
#ifdef SUNPRO
vars_of_sunpro();
#endif
unlock_all_files();
#endif
-#ifdef TOOLTALK
- tt_session_quit(tt_default_session());
-#if 0
- /* The following crashes when built on X11R5 and run on X11R6 */
- tt_close();
-#endif
-#endif /* TOOLTALK */
-
}
\f
#ifndef CANNOT_DUMP