Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/rpc.lockd for fork'ed children, use _exit instead o...



details:   https://anonhg.NetBSD.org/src/rev/87c4c3e0f527
branches:  trunk
changeset: 544201:87c4c3e0f527
user:      yamt <yamt%NetBSD.org@localhost>
date:      Fri Mar 14 13:53:08 2003 +0000

description:
for fork'ed children, use _exit instead of exit.

diffstat:

 usr.sbin/rpc.lockd/lockd_lock.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (22 lines):

diff -r 1591027ca8bc -r 87c4c3e0f527 usr.sbin/rpc.lockd/lockd_lock.c
--- a/usr.sbin/rpc.lockd/lockd_lock.c   Fri Mar 14 13:46:23 2003 +0000
+++ b/usr.sbin/rpc.lockd/lockd_lock.c   Fri Mar 14 13:53:08 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lockd_lock.c,v 1.12 2003/03/14 13:46:23 yamt Exp $     */
+/*     $NetBSD: lockd_lock.c,v 1.13 2003/03/14 13:53:08 yamt Exp $     */
 
 /*
  * Copyright (c) 2000 Manuel Bouyer.
@@ -474,10 +474,10 @@
                        if(flock(fl->fd, lflags) != 0) {
                                syslog(LOG_NOTICE, "flock failed: %s",
                                    strerror(errno));
-                               exit(1);
+                               _exit(1);
                        }
                        /* lock granted */      
-                       exit(0);
+                       _exit(0);
                default:
                        syslog(LOG_DEBUG, "lock request from %s: forked %d",
                            fl->client_name, fl->locker);



Home | Main Index | Thread Index | Old Index