Broken pipes fix
- fix for the broken partial pipes r/w operations
This commit is contained in:
parent
ab6fc64984
commit
97fe6a4ba5
1 changed files with 2 additions and 1 deletions
|
@ -238,6 +238,7 @@ PRIVATE void get_work()
|
|||
/* Revive a suspended process. */
|
||||
for (rp = &fproc[0]; rp < &fproc[NR_PROCS]; rp++)
|
||||
if (rp->fp_pid != PID_FREE && rp->fp_revived == REVIVING) {
|
||||
int blocked_on = rp->fp_blocked_on;
|
||||
found_one= TRUE;
|
||||
who_p = (int)(rp - fproc);
|
||||
who_e = rp->fp_endpoint;
|
||||
|
@ -255,7 +256,7 @@ PRIVATE void get_work()
|
|||
*/
|
||||
assert(!GRANT_VALID(rp->fp_grant));
|
||||
|
||||
if (rp->fp_blocked_on == FP_BLOCKED_ON_PIPE)
|
||||
if (blocked_on == FP_BLOCKED_ON_PIPE)
|
||||
{
|
||||
fp= rp;
|
||||
fd_nr= (rp->fp_fd >> 8);
|
||||
|
|
Loading…
Reference in a new issue