free(et);
free(ed);
} else {
- glite_common_log(LOG_CATEGORY_CONTROL, LOG_PRIORITY_INFO, "Background purge done, %d jobs purged.", i - 1);
+ glite_common_log(LOG_CATEGORY_CONTROL, LOG_PRIORITY_INFO, "Background purge done successfully.");
}
*response = NULL;
if (requestPTR) free(requestPTR);
srv = -1;
glite_common_log(set_log_category, LOG_PRIORITY_DEBUG, "[%d] %s, connection closed",getpid(),strerror(rv));
continue;
- }
- else if ( rv < 0 ) {
+ } else if (rv == -EINPROGRESS) {
+ /* background operation -> parent forked -> kill slave */
+ glite_common_log(set_log_category, LOG_PRIORITY_DEBUG, "[%d] terminating parent",getpid());
+ exit(0);
+ } else if ( rv < 0 ) {
/* unknown error -> clasified as FATAL -> kill slave
*/
glite_common_log(set_log_category, LOG_PRIORITY_INFO, "[%d] %s, terminating",getpid(),strerror(-rv));