From owner-freebsd-current@FreeBSD.ORG Fri Apr 25 09:07:38 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A74C437B401 for ; Fri, 25 Apr 2003 09:07:38 -0700 (PDT) Received: from mail.speakeasy.net (mail14.speakeasy.net [216.254.0.214]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF25F43F75 for ; Fri, 25 Apr 2003 09:07:37 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 16789 invoked from network); 25 Apr 2003 16:07:41 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender )encrypted SMTP for ; 25 Apr 2003 16:07:41 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.8/8.12.8) with ESMTP id h3PG7ZOv003687; Fri, 25 Apr 2003 12:07:35 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.4 on FreeBSD X-Priority: 3 (Normal) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="_=XFMail.1.5.4.FreeBSD:20030425110847:955=_" In-Reply-To: <1051268728.675.2.camel@localhost> Date: Fri, 25 Apr 2003 12:07:38 -0400 (EDT) From: John Baldwin To: Jeff Utter cc: current@freebsd.org Subject: RE: Linux compat broken?? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Apr 2003 16:07:38 -0000 This message is in MIME format --_=XFMail.1.5.4.FreeBSD:20030425110847:955=_ Content-Type: text/plain; charset=us-ascii On 25-Apr-2003 Jeff Utter wrote: > >> This is current. People running current are expected to not do updates >> completely blind. That said, you can try reverting revision 1.42 of >> sys/compat/linux/linux_signal.c and see if it fixes your problem? > > Thanks!... that fixed most of my problems, vmware works now... However > my nvidia drivers have started to mess up (they use linux compat right?) > When i try to start X using them, my screen flashes once and returns to > console locking up my system. Any idea what file(s) could have changed > to do this? Can you try putting revision 1.42 back and trying the attached patch instead? -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ --_=XFMail.1.5.4.FreeBSD:20030425110847:955=_ Content-Disposition: attachment; filename="linux_signal.patch" Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii; name=linux_signal.patch; SizeOnDisk=938 Index: linux_signal.c =================================================================== RCS file: /usr/cvs/src/sys/compat/linux/linux_signal.c,v retrieving revision 1.42 diff -u -r1.42 linux_signal.c --- linux_signal.c 22 Apr 2003 18:23:47 -0000 1.42 +++ linux_signal.c 25 Apr 2003 15:03:02 -0000 @@ -233,14 +233,25 @@ td->td_retval[0] = 0; + switch (how) { + case LINUX_SIG_BLOCK: + how = SIG_BLOCK; + break; + case LINUX_SIG_UNBLOCK: + how = SIG_UNBLOCK; + break; + case LINUX_SIG_SETMASK: + how = SIG_SETMASK; + break; + default: + return (EINVAL); + } if (new != NULL) { linux_to_bsd_sigset(new, &nmask); nmaskp = &nmask; } else nmaskp = NULL; - - /* Linux sigprocmask flag values are one less than FreeBSD values. */ - error = kern_sigprocmask(td, how + 1, nmaskp, &omask, 0); + error = kern_sigprocmask(td, how, nmaskp, &omask, 0); if (error != 0 && old != NULL) bsd_to_linux_sigset(&omask, old); --_=XFMail.1.5.4.FreeBSD:20030425110847:955=_-- End of MIME message