130 |
|
|
131 |
ASSERT(p); |
ASSERT(p); |
132 |
|
|
133 |
|
/* Obtain process action mutex */ |
134 |
|
LOCK(p->mutex) |
135 |
|
|
136 |
/* First, check for pre-conditions */ |
/* First, check for pre-conditions */ |
137 |
if(do_not_validate(p)) return; |
if(do_not_validate(p)) { |
138 |
|
/* Release process action mutex */ |
139 |
|
pthread_mutex_unlock(&p->mutex); |
140 |
|
return; |
141 |
|
} |
142 |
|
|
143 |
/* Set a SIGTERM block */ |
/* Set a SIGTERM block */ |
144 |
sigemptyset(&ns); |
sigemptyset(&ns); |
260 |
|
|
261 |
/* Remove the SIGTERM block */ |
/* Remove the SIGTERM block */ |
262 |
pthread_sigmask(SIG_SETMASK, &os, NULL); |
pthread_sigmask(SIG_SETMASK, &os, NULL); |
263 |
|
|
264 |
|
/* Release process action mutex */ |
265 |
|
END_LOCK; |
266 |
|
|
267 |
} |
} |
268 |
|
|