Wed Aug 26 13:35:12 2020 UTC ()
Fix indentation


(gson)
diff -r1.71 -r1.72 src/usr.sbin/nfsd/nfsd.c

cvs diff -r1.71 -r1.72 src/usr.sbin/nfsd/nfsd.c (expand / switch to unified diff)

--- src/usr.sbin/nfsd/nfsd.c 2020/08/26 13:33:42 1.71
+++ src/usr.sbin/nfsd/nfsd.c 2020/08/26 13:35:12 1.72
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: nfsd.c,v 1.71 2020/08/26 13:33:42 gson Exp $ */ 1/* $NetBSD: nfsd.c,v 1.72 2020/08/26 13:35:12 gson Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1989, 1993, 1994 4 * Copyright (c) 1989, 1993, 1994
5 * The Regents of the University of California. All rights reserved. 5 * The Regents of the University of California. All rights reserved.
6 * 6 *
7 * This code is derived from software contributed to Berkeley by 7 * This code is derived from software contributed to Berkeley by
8 * Rick Macklem at The University of Guelph. 8 * Rick Macklem at The University of Guelph.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -32,27 +32,27 @@ @@ -32,27 +32,27 @@
32 * SUCH DAMAGE. 32 * SUCH DAMAGE.
33 */ 33 */
34 34
35#include <sys/cdefs.h> 35#include <sys/cdefs.h>
36#ifndef lint 36#ifndef lint
37__COPYRIGHT("@(#) Copyright (c) 1989, 1993, 1994\ 37__COPYRIGHT("@(#) Copyright (c) 1989, 1993, 1994\
38 The Regents of the University of California. All rights reserved."); 38 The Regents of the University of California. All rights reserved.");
39#endif /* not lint */ 39#endif /* not lint */
40 40
41#ifndef lint 41#ifndef lint
42#if 0 42#if 0
43static char sccsid[] = "@(#)nfsd.c 8.9 (Berkeley) 3/29/95"; 43static char sccsid[] = "@(#)nfsd.c 8.9 (Berkeley) 3/29/95";
44#else 44#else
45__RCSID("$NetBSD: nfsd.c,v 1.71 2020/08/26 13:33:42 gson Exp $"); 45__RCSID("$NetBSD: nfsd.c,v 1.72 2020/08/26 13:35:12 gson Exp $");
46#endif 46#endif
47#endif /* not lint */ 47#endif /* not lint */
48 48
49#include <sys/param.h> 49#include <sys/param.h>
50#include <sys/ioctl.h> 50#include <sys/ioctl.h>
51#include <sys/stat.h> 51#include <sys/stat.h>
52#include <sys/wait.h> 52#include <sys/wait.h>
53#include <sys/uio.h> 53#include <sys/uio.h>
54#include <sys/ucred.h> 54#include <sys/ucred.h>
55#include <sys/mount.h> 55#include <sys/mount.h>
56#include <sys/socket.h> 56#include <sys/socket.h>
57#include <sys/socketvar.h> 57#include <sys/socketvar.h>
58#include <poll.h> 58#include <poll.h>
@@ -319,27 +319,27 @@ daemon2_fork(void) @@ -319,27 +319,27 @@ daemon2_fork(void)
319 continue; 319 continue;
320 } 320 }
321 break; 321 break;
322 } 322 }
323 323
324 pid = fork(); 324 pid = fork();
325 switch (pid) { 325 switch (pid) {
326 case -1: 326 case -1:
327 return -1; 327 return -1;
328 case 0: 328 case 0:
329 /* child */ 329 /* child */
330 (void)close(detach_msg_pipe[0]); 330 (void)close(detach_msg_pipe[0]);
331 (void)write(detach_msg_pipe[1], "", 1); 331 (void)write(detach_msg_pipe[1], "", 1);
332 return detach_msg_pipe[1]; 332 return detach_msg_pipe[1];
333 default: 333 default:
334 break; 334 break;
335 } 335 }
336 336
337 /* Parent */ 337 /* Parent */
338 (void)close(detach_msg_pipe[1]); 338 (void)close(detach_msg_pipe[1]);
339 339
340 for (;;) { 340 for (;;) {
341 ssize_t nread; 341 ssize_t nread;
342 char dummy; 342 char dummy;
343 nread = read(detach_msg_pipe[0], &dummy, 1); 343 nread = read(detach_msg_pipe[0], &dummy, 1);
344 if (nread < 0) { 344 if (nread < 0) {
345 if (errno == EINTR) 345 if (errno == EINTR)