# | Line 30 | Line 30 | int nbr, int nbs | |
---|---|---|
30 | { | |
31 | if (nbs > PIPE_BUF) | |
32 | return(-1); | |
33 | + | if (!pd->running) |
34 | + | return(-1); |
35 | if (writebuf(pd->w, sendbuf, nbs) < nbs) | |
36 | return(-1); | |
37 | return(readbuf(pd->r, recvbuf, nbr)); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |