|
|
@ -188,6 +188,8 @@ out: |
|
|
|
return ret; |
|
|
|
return ret; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static void childsighandler(int sig); |
|
|
|
|
|
|
|
|
|
|
|
/* Send a single message to a process instance when there will be no response,
|
|
|
|
/* Send a single message to a process instance when there will be no response,
|
|
|
|
* closing the socket immediately. */ |
|
|
|
* closing the socket immediately. */ |
|
|
|
bool _send_proc(proc_instance_t *pi, const char *msg, const char *file, const char *func, const int line) |
|
|
|
bool _send_proc(proc_instance_t *pi, const char *msg, const char *file, const char *func, const int line) |
|
|
@ -219,8 +221,10 @@ bool _send_proc(proc_instance_t *pi, const char *msg, const char *file, const ch |
|
|
|
ret = true; |
|
|
|
ret = true; |
|
|
|
close(sockd); |
|
|
|
close(sockd); |
|
|
|
out: |
|
|
|
out: |
|
|
|
if (unlikely(!ret)) |
|
|
|
if (unlikely(!ret)) { |
|
|
|
LOGERR("Failure in send_proc from %s %s:%d", file, func, line); |
|
|
|
LOGERR("Failure in send_proc from %s %s:%d", file, func, line); |
|
|
|
|
|
|
|
childsighandler(15); |
|
|
|
|
|
|
|
} |
|
|
|
return ret; |
|
|
|
return ret; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|