Why sometimes init process read /dev/initctl return -1?

2020-05-03 Thread Gaofan
We use sysvinit to build our system. When I input "poweroff" command, sometimes the system has no response. I did some investigation, and found that in the function check_init_fifo() of init, the line: n = read(pipe_fd, &request, sizeof(request)); sometimes it return -1, and the error code is

Re: Sysvinit-devel Digest, Vol 68, Issue 1

2020-05-03 Thread Jesse Smith
> We use sysvinit to build our system. When I input "poweroff" command, > sometimes the system has no response. > > I did some investigation, and found that in the function check_init_fifo() of > init, the line: > > n = read(pipe_fd, &request, sizeof(request)); > > sometimes it return -1, and t