diff options
author | wennmach <wennmach> | 2000-11-06 15:24:58 +0000 |
---|---|---|
committer | wennmach <wennmach> | 2000-11-06 15:24:58 +0000 |
commit | b28739f256e924278236facb9cae6b2ca64751d1 (patch) | |
tree | 2a51a21e18407867a07c070780263116da47dd02 /net/arla/patches | |
parent | 5979ac830a8e1a6277557726d12fa85091eb538e (diff) | |
download | pkgsrc-b28739f256e924278236facb9cae6b2ca64751d1.tar.gz |
Do not core dump if a deadlock can be avoided. Also, improve
modload message.
Diffstat (limited to 'net/arla/patches')
-rw-r--r-- | net/arla/patches/patch-ak | 19 | ||||
-rw-r--r-- | net/arla/patches/patch-av | 19 |
2 files changed, 33 insertions, 5 deletions
diff --git a/net/arla/patches/patch-ak b/net/arla/patches/patch-ak index fb289e00fab..ae311cb0cea 100644 --- a/net/arla/patches/patch-ak +++ b/net/arla/patches/patch-ak @@ -1,17 +1,26 @@ -$NetBSD: patch-ak,v 1.1.1.1 2000/06/08 15:56:28 wennmach Exp $ +$NetBSD: patch-ak,v 1.2 2000/11/06 15:24:58 wennmach Exp $ Do not print a cryptic message after xfs_mod has been modloaded, say it in clear text. ---- xfs/bsd/xfs_wrap-bsd.c.orig Thu Jun 8 13:28:58 2000 -+++ xfs/bsd/xfs_wrap-bsd.c Thu Jun 8 13:35:12 2000 -@@ -310,8 +310,7 @@ +--- xfs/bsd/xfs_wrap-bsd.c.orig Tue May 9 05:17:00 2000 ++++ xfs/bsd/xfs_wrap-bsd.c Mon Nov 6 16:08:55 2000 +@@ -36,6 +36,8 @@ + * SUCH DAMAGE. + */ + ++#include <arla-version.h> ++ + #include <xfs/xfs_locl.h> + #include <xfs/xfs_message.h> + #include <xfs/xfs_fs.h> +@@ -308,8 +310,7 @@ ret = lkmdispatch(lkmtp, cmd); if(cmd == LKM_E_LOAD) { xfs_dev_major = _module.lkm_offset; - printf ("xfs: cdev: %d, syscall: %d\n", - xfs_dev_major, xfs_syscall_num); -+ printf("xfs_mod driver for arla loaded.\n"); ++ printf("driver for %s loaded.\n", arla_version); } return ret; } diff --git a/net/arla/patches/patch-av b/net/arla/patches/patch-av new file mode 100644 index 00000000000..7869a0e08e4 --- /dev/null +++ b/net/arla/patches/patch-av @@ -0,0 +1,19 @@ +$NetBSD: patch-av,v 1.1 2000/11/06 15:24:58 wennmach Exp $ + +Do not send SIGABRT to arlad if a deadlock could be avoided. This psignal +is cruft left over from debugging. Also, avoid "interesting" error reports, +like: +"xfs_message_rpc: deadlock avoided pid = 8006 != 8006" + +--- xfs/bsd/xfs_dev-common.c.old Wed Sep 13 08:34:10 2000 ++++ xfs/bsd/xfs_dev-common.c Mon Nov 6 15:50:15 2000 +@@ -399,8 +399,7 @@ + + if (chan->proc != NULL && proc->p_pid == chan->proc->p_pid) { + printf("xfs_message_rpc: deadlock avoided" +- "pid = %u != %u\n", proc->p_pid, chan->proc->p_pid); +- psignal (proc, SIGABRT); ++ ", pid = %u == %u\n", proc->p_pid, chan->proc->p_pid); + return EDEADLK; + } + |