(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:
@@ -88,12 +88,15 @@ parse_ports(krb5_context context, const char *str)
|
||||
}
|
||||
|
||||
static pid_t pgrp;
|
||||
int term_flag;
|
||||
sig_atomic_t term_flag, doing_useful_work;
|
||||
|
||||
static RETSIGTYPE
|
||||
wait_term(int sig)
|
||||
{
|
||||
term_flag = 1;
|
||||
if(doing_useful_work)
|
||||
term_flag = 1;
|
||||
else
|
||||
exit(0);
|
||||
SIGRETURN(0);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user