* possible bug in dopipe() [walk.c]
@ 1992-05-28 16:06 Erik Quanstrom
0 siblings, 0 replies; only message in thread
From: Erik Quanstrom @ 1992-05-28 16:06 UTC (permalink / raw)
To: rc
It dopipe, 1 is used as a sentinal to mark fd_pref and fd_out as
unused. Is it entirely clear that fd 1 will never be used? I would
think that -1 (_never_ a legal value for a fd) would be a better choice
for the sentinal, or?
298c298
< fd_prev = fd_out = 1;
---
> fd_prev = fd_out = -1;
310c310
< if (fd_prev != 1)
---
> if (fd_prev != -1)
316c316
< if (fd_prev != 1)
---
> if (fd_prev != -1)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1992-05-28 16:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1992-05-28 16:06 possible bug in dopipe() [walk.c] Erik Quanstrom
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).