fd. Also, align preprocessor directives with left margin.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6406
dc483132-0cff-0310-8789-
dd5450dbe970
+Fri Aug 4 00:59:20 1995 Tom Yu <tlyu@dragons-lair.MIT.EDU>
+
+ * cleanup.c (pty_cleanup): Add missing declarations for retval and
+ fd. Also, align preprocessor directives with left margin.
+
Thu Aug 3 15:04:34 1995 Sam Hartman <hartmans@tertius.mit.edu>
* configure.in: Check for vhangup and killpg.
int update_utmp;
{
struct utmp ut;
+ int retval, fd;
#ifndef NO_UT_PID
ut.ut_pid = 0;
* along SIGHUP, all processes may not die.
*/
if ( pid > 0 ) {
- #ifdef HAVE_KILLPG
+#ifdef HAVE_KILLPG
killpg(pid, SIGHUP);
- #else
+#else
kill( -(pid), SIGHUP );
#endif /*HAVE_KILLPG*/
}
#else /* HAVE_REVOKE*/
- #ifdef VHANG_LAST
+#ifdef VHANG_LAST
if ( retval = ( pty_open_ctty( slave, &fd )))
return retval;
ptyint_vhangup();
+ return 0;
#endif
#endif
}