(wait_term): if we're doing something, set just set a flag otherwise

exit rightaway


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8738 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
2000-07-21 23:28:10 +00:00
parent c3dcac59bd
commit 950ad5b73d

View File

@@ -88,12 +88,15 @@ parse_ports(krb5_context context, const char *str)
} }
static pid_t pgrp; static pid_t pgrp;
int term_flag; sig_atomic_t term_flag, doing_useful_work;
static RETSIGTYPE static RETSIGTYPE
wait_term(int sig) wait_term(int sig)
{ {
term_flag = 1; if(doing_useful_work)
term_flag = 1;
else
exit(0);
SIGRETURN(0); SIGRETURN(0);
} }