X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=main.c;h=2d8e46b1b9d82bf3676af5cfaf603b4d76c04a85;hb=285039a8783654439d9c0e29aac16e3893e2444b;hp=bed0edd4167c2e25a2e5465cb798bb3c741d81d4;hpb=26486b46eada232ef807f3d969ffdec33d5e4858;p=project%2Fnetifd.git diff --git a/main.c b/main.c index bed0edd..2d8e46b 100644 --- a/main.c +++ b/main.c @@ -90,7 +90,7 @@ retry: maxlen = LOG_BUF_SIZE - proc->log_buf_ofs; read_len = len = read(fd->fd, buf, maxlen); if (len < 0) { - if (errno == EAGAIN) + if (errno == EINTR) goto retry; goto out; @@ -219,7 +219,7 @@ netifd_kill_process(struct netifd_process *proc) if (!proc->uloop.pending) return; - kill(proc->uloop.pid, SIGTERM); + kill(proc->uloop.pid, SIGKILL); netifd_delete_process(proc); }