Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/rlogin Added missing sa_mask initialization (CID 979...
details: https://anonhg.NetBSD.org/src/rev/c016da0764d2
branches: trunk
changeset: 341256:c016da0764d2
user: shm <shm%NetBSD.org@localhost>
date: Wed Oct 28 08:15:53 2015 +0000
description:
Added missing sa_mask initialization (CID 979636)
OK kamil@ mrg@
diffstat:
usr.bin/rlogin/rlogin.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r cfe5aa93df7b -r c016da0764d2 usr.bin/rlogin/rlogin.c
--- a/usr.bin/rlogin/rlogin.c Wed Oct 28 07:27:24 2015 +0000
+++ b/usr.bin/rlogin/rlogin.c Wed Oct 28 08:15:53 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rlogin.c,v 1.43 2013/03/02 18:37:19 wiz Exp $ */
+/* $NetBSD: rlogin.c,v 1.44 2015/10/28 08:15:53 shm Exp $ */
/*
* Copyright (c) 1983, 1990, 1993
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)rlogin.c 8.4 (Berkeley) 4/29/95";
#else
-__RCSID("$NetBSD: rlogin.c,v 1.43 2013/03/02 18:37:19 wiz Exp $");
+__RCSID("$NetBSD: rlogin.c,v 1.44 2015/10/28 08:15:53 shm Exp $");
#endif
#endif /* not lint */
@@ -741,6 +741,7 @@
struct sigaction sa;
sa.sa_flags = SA_RESTART;
sa.sa_handler = SIG_IGN;
+ sigemptyset(&sa.sa_mask);
(void)sigaction(SIGPIPE, &sa, (struct sigaction *)0);
msg("\aconnection closed.");
done(1);
Home |
Main Index |
Thread Index |
Old Index