Mechanical whitespace cleanup + minor style nits.
This commit is contained in:
parent
69ce6641b6
commit
8de0243528
@ -258,10 +258,12 @@ pipe(td, uap)
|
|||||||
FILEDESC_LOCK(fdp);
|
FILEDESC_LOCK(fdp);
|
||||||
if (fdp->fd_ofiles[td->td_retval[0]] == rf) {
|
if (fdp->fd_ofiles[td->td_retval[0]] == rf) {
|
||||||
fdp->fd_ofiles[td->td_retval[0]] = NULL;
|
fdp->fd_ofiles[td->td_retval[0]] = NULL;
|
||||||
|
fdunused(fdp, td->td_retval[0]);
|
||||||
FILEDESC_UNLOCK(fdp);
|
FILEDESC_UNLOCK(fdp);
|
||||||
fdrop(rf, td);
|
fdrop(rf, td);
|
||||||
} else
|
} else {
|
||||||
FILEDESC_UNLOCK(fdp);
|
FILEDESC_UNLOCK(fdp);
|
||||||
|
}
|
||||||
fdrop(rf, td);
|
fdrop(rf, td);
|
||||||
/* rpipe has been closed by fdrop(). */
|
/* rpipe has been closed by fdrop(). */
|
||||||
pipeclose(wpipe);
|
pipeclose(wpipe);
|
||||||
|
@ -125,6 +125,7 @@ socket(td, uap)
|
|||||||
if (error) {
|
if (error) {
|
||||||
if (fdp->fd_ofiles[fd] == fp) {
|
if (fdp->fd_ofiles[fd] == fp) {
|
||||||
fdp->fd_ofiles[fd] = NULL;
|
fdp->fd_ofiles[fd] = NULL;
|
||||||
|
fdunused(fdp, fd);
|
||||||
FILEDESC_UNLOCK(fdp);
|
FILEDESC_UNLOCK(fdp);
|
||||||
fdrop(fp, td);
|
fdrop(fp, td);
|
||||||
} else
|
} else
|
||||||
@ -390,6 +391,7 @@ noconnection:
|
|||||||
FILEDESC_LOCK(fdp);
|
FILEDESC_LOCK(fdp);
|
||||||
if (fdp->fd_ofiles[fd] == nfp) {
|
if (fdp->fd_ofiles[fd] == nfp) {
|
||||||
fdp->fd_ofiles[fd] = NULL;
|
fdp->fd_ofiles[fd] = NULL;
|
||||||
|
fdunused(fdp, fd);
|
||||||
FILEDESC_UNLOCK(fdp);
|
FILEDESC_UNLOCK(fdp);
|
||||||
fdrop(nfp, td);
|
fdrop(nfp, td);
|
||||||
} else {
|
} else {
|
||||||
@ -584,6 +586,7 @@ free4:
|
|||||||
FILEDESC_LOCK(fdp);
|
FILEDESC_LOCK(fdp);
|
||||||
if (fdp->fd_ofiles[sv[1]] == fp2) {
|
if (fdp->fd_ofiles[sv[1]] == fp2) {
|
||||||
fdp->fd_ofiles[sv[1]] = NULL;
|
fdp->fd_ofiles[sv[1]] = NULL;
|
||||||
|
fdunused(fdp, sv[1]);
|
||||||
FILEDESC_UNLOCK(fdp);
|
FILEDESC_UNLOCK(fdp);
|
||||||
fdrop(fp2, td);
|
fdrop(fp2, td);
|
||||||
} else
|
} else
|
||||||
@ -593,6 +596,7 @@ free3:
|
|||||||
FILEDESC_LOCK(fdp);
|
FILEDESC_LOCK(fdp);
|
||||||
if (fdp->fd_ofiles[sv[0]] == fp1) {
|
if (fdp->fd_ofiles[sv[0]] == fp1) {
|
||||||
fdp->fd_ofiles[sv[0]] = NULL;
|
fdp->fd_ofiles[sv[0]] = NULL;
|
||||||
|
fdunused(fdp, sv[0]);
|
||||||
FILEDESC_UNLOCK(fdp);
|
FILEDESC_UNLOCK(fdp);
|
||||||
fdrop(fp1, td);
|
fdrop(fp1, td);
|
||||||
} else
|
} else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user