summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_process.c
diff options
context:
space:
mode:
authorKonstantin Pavlov <thresh@nginx.com>2024-12-19 10:23:57 -0800
committerKonstantin Pavlov <thresh@nginx.com>2024-12-19 10:23:57 -0800
commitd8acad350a52a20918c46c09cb0a0f5479400923 (patch)
tree7d9c4b64daa60d3ac121743dfa3735c6fc5687a4 /src/nxt_process.c
parent624debcf17ea7faab01fa841bd4dcd9f308cf306 (diff)
parent27bde184dedcbf687db2f314c60c037623318a8d (diff)
downloadunit-1.34.0-1.tar.gz
unit-1.34.0-1.tar.bz2
Merge tag '1.34.0' into packaging1.34.0-1
Unit 1.34.0 release.
Diffstat (limited to 'src/nxt_process.c')
-rw-r--r--src/nxt_process.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/nxt_process.c b/src/nxt_process.c
index ce2de774..f445f0f5 100644
--- a/src/nxt_process.c
+++ b/src/nxt_process.c
@@ -370,18 +370,14 @@ nxt_process_pipe_timer(nxt_fd_t fd, short event)
static nxt_int_t
nxt_process_check_pid_status(const nxt_fd_t *gc_pipe)
{
- int8_t status;
+ int8_t status = -1;
ssize_t ret;
close(gc_pipe[1]);
ret = nxt_process_pipe_timer(gc_pipe[0], POLLIN);
if (ret == NXT_OK) {
- ret = read(gc_pipe[0], &status, sizeof(int8_t));
- }
-
- if (ret <= 0) {
- status = -1;
+ read(gc_pipe[0], &status, sizeof(int8_t));
}
close(gc_pipe[0]);