Re: Bash2 removes SSH_CLIENT from the environment

2001-01-30 Thread Peter Pentchev
On Mon, Jan 29, 2001 at 03:09:30PM -0500, Patrick Bihan-Faou wrote: Hi, I am writing some script that looks for the SSH_CLIENT environment variable. As specified in the sshd(8) man page, this variable should contain the IP address of the client, the port number on the client side and the

RE: Kernel Hacking (i tried not to make it lame)

2001-01-30 Thread Koster, K.J.
I think Yahoo! is using still on 2.2.8. Don't let your imagination run away with you. :) Ok, ok. I just tried to say that there are still 2.2.8 users around with Yahoo! as an example. :-) Kees Jan You are only young once, but

Re: Clustering FreeBSD

2001-01-30 Thread Mark Huizer
| | Doh! I mean 9.8 m/s/s, of course. That's acceleration not velocity :-) The terminal velocity of a PC case is probably a lot lower than the velocity of an outer edge of a 1 RPM drive. What am I doing wrong? Given a diameter of appr. 7cm, I'd come at appr 0.7Mach. Does that mean

Re: Clustering FreeBSD

2001-01-30 Thread Peter Wemm
Mark Huizer wrote: | | Doh! I mean 9.8 m/s/s, of course. That's acceleration not velocity :-) The terminal velocity of a PC case is probably a lot lower than the velocity of an outer edge of a 1 RPM drive. What am I doing wrong? Given a diameter of appr. 7cm, I'd come at

Re: Clustering FreeBSD

2001-01-30 Thread Harti Brandt
On Tue, 30 Jan 2001, Peter Wemm wrote: PWMark Huizer wrote: PW | PW | Doh! I mean 9.8 m/s/s, of course. PW PW That's acceleration not velocity :-) PW PW The terminal velocity of a PC case is probably a lot lower than the PW velocity of an outer edge of a 1 RPM drive. PW PW What

Re: Clustering FreeBSD

2001-01-30 Thread thomas
On 30 Jan, Peter Wemm wrote: Mark Huizer wrote: | | Doh! I mean 9.8 m/s/s, of course. That's acceleration not velocity :-) The terminal velocity of a PC case is probably a lot lower than the velocity of an outer edge of a 1 RPM drive. What am I doing wrong? Given a

Re: Clustering FreeBSD

2001-01-30 Thread Poul-Henning Kamp
In message [EMAIL PROTECTED], [EMAIL PROTECTED] writes: What am I doing wrong? Given a diameter of appr. 7cm, I'd come at appr 0.7Mach. Does that mean that within a few years my machine will go KABOOM when booting? I have a 15K rpm drive if you want to do a recalculation. I think that

Re: Clustering FreeBSD

2001-01-30 Thread Andrew Kenneth Milton
+---[ Poul-Henning Kamp ]-- | In message [EMAIL PROTECTED], |[EMAIL PROTECTED] writes: | | What am I doing wrong? Given a diameter of appr. 7cm, I'd come at appr | 0.7Mach. Does that mean that within a few years my machine will go | KABOOM when booting? | | I have

hardware not raising interrupts

2001-01-30 Thread Suma H R
Hi, We are writing a network device driver for an ethernet interface network card. The hardware IRQ status register shows an Interrupt to be Pending. But, vmstat -i doesn't show any interrupts from our device. Any idea why it could be happening? Thanks, Suma To Unsubscribe: send

Re: newbie - Audio CD question

2001-01-30 Thread Dag-Erling Smorgrav
vijay [EMAIL PROTECTED] writes: Hi, I am new to FreeBSD. I wanted to know if I can play audio CDs on "my" system. 'man cdcontrol' DES -- Dag-Erling Smorgrav - [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: disk problem

2001-01-30 Thread Danny Braniss
In message [EMAIL PROTECTED]you write: }i did the vinum stuff again, but now im getting all kind of errors. }btw, the kernel is of this morning (4.2 cvsuped this morning - local time), i }noticed some fixes to the aic7xxx. } }You have a bad cable or terminator. The 7899 runs quite a bit faster

Re: Bash2 removes SSH_CLIENT from the environment

2001-01-30 Thread Chet Ramey
However I found that if the login shell of the user is set to bash (version 2.03 or 2.04 at least), this variable is never set. Upon inspection of the code for bash, it appears that bash is explicitely removing the definition of this environment variable. Would anybody have an idea why

RE: Bash2 removes SSH_CLIENT from the environment

2001-01-30 Thread Patrick Bihan-Faou
Hi, Bash uses the presence of SSH_CLIENT to decide whether or not to run the shell startup files for a non-interactive shell (like it attempts to do for rsh). The problem is that if the variable is exported, subsequent invocations of non-interactive shells will source the startup files. A

RE: Bash2 removes SSH_CLIENT from the environment

2001-01-30 Thread Chet Ramey
The tradeoff bash makes is to remove the export attribute from SSH_CLIENT if it exists in the shell's initial environment. Users may always export it explicitly. This is what I figured from reading the code, however not exporting SSH_CLIENT is not enough to really achieve this goal:

RE: Bash2 removes SSH_CLIENT from the environment

2001-01-30 Thread Patrick Bihan-Faou
Also the content of SSH_CLIENT may be of intereset (namely the remote IP) and I don't know how to retrieve that information after SSH_CLIENT has been clobbered. What do you mean? The variable is still there, it's just not exported. If you want to export it, do so. How do I access

Re: newbie - Audio CD question

2001-01-30 Thread joerch
wdc0 at 0x1f0-0x1f7 irq 14 on isa wdc0: unit 0 (wd0): FUJITSU MPC3064AT wd0: 6187MB (12672450 sectors), 13410 cyls, 15 heads, 63 S/T, 512 B/S wdc1 at 0x170-0x177 irq 15 on isa wdc1: unit 0 (atapi): TOSHIBA CD-ROM XM-6402B/1008, removable, accel, dma, iordis acd0: drive speed 5512KB/sec,

kevents umount -f kernel panic

2001-01-30 Thread Mitja Horvat
Hi all, I found a bug in the FreeBSD kernel today(it's 4.2-STABLE, cvsupped today). It is related to kevents and the umount -f option(forcibly unmounting of a filesystem). The bug is easily reproducible by running this simple shell script: #/bin/sh while true do mount /cdrom

Re: hardware not raising interrupts

2001-01-30 Thread Dennis
At 07:48 AM 01/30/2001, Suma H R wrote: Hi, We are writing a network device driver for an ethernet interface network card. The hardware IRQ status register shows an Interrupt to be Pending. But, vmstat -i doesn't show any interrupts from our device. Any idea why it could be happening?

40upgrade.tgz

2001-01-30 Thread Josef Grosch
Does anyone know what happened to the file 40upgrade.tgz? I went to the ports page off the main FreeBSD page and tried to get the "4.0 to 4-STABLE upgrade kit" but got an error message saying the file was not found. I poked around on the ftp site and could not find it. Any ideas? Josef --

Re: more info about: odd result of pci_read_config

2001-01-30 Thread Nicolas Souchu
On Tue, Jan 23, 2001 at 05:20:56PM -0600, Steve Shoecraft wrote: Were you able to get testmod to work? The problem came from the fact that I was recompiling some of the pci files. They were locally linked to my module producing the wrongs results I got. Sent to -hackers to close the

Re: 40upgrade.tgz

2001-01-30 Thread James
ftp.freebsd.org:/.0/FreeBSD/ports/i386/packages-4.1-release/Latest/40upgrade .tgz However, I'm not sure this will let you use ports now. Josef Grosch writes: Does anyone know what happened to the file 40upgrade.tgz? I went to the ports page off the main FreeBSD page and tried to get

Re: 40upgrade.tgz

2001-01-30 Thread Josef Grosch
On Tue, Jan 30, 2001 at 06:30:14PM +, James wrote: ftp.freebsd.org:/.0/FreeBSD/ports/i386/packages-4.1-release/Latest/40upgrade .tgz However, I'm not sure this will let you use ports now. Thanks! I just need this to get the 4.0-RELEASE system I am dealing with upgraded so I can cvsup

Kevents/libc_r ?

2001-01-30 Thread Jeff Roberson
Title: Kevents/libc_r ? Does anyone know if it's safe to use kevents with pthreads yet? I poked around and saw that it is handled in libc_r/uthread, but I also noticed that my process that should be waiting in kqread is actually waiting in poll. If I remove -pthread from the compile line it

Re: Kevents/libc_r ?

2001-01-30 Thread Alfred Perlstein
* Jeff Roberson [EMAIL PROTECTED] [010130 11:05] wrote: Does anyone know if it's safe to use kevents with pthreads yet? I poked around and saw that it is handled in libc_r/uthread, but I also noticed that my process that should be waiting in kqread is actually waiting in poll. If I remove

RE: Kevents/libc_r ?

2001-01-30 Thread Jeff Roberson
Title: RE: Kevents/libc_r ? Is that true in -CURRENT as well? It looks to me like it calls kevents with a 0 timespec and then calls into the scheduler. * Jeff Roberson [EMAIL PROTECTED] [010130 11:05] wrote: Does anyone know if it's safe to use kevents with pthreads yet? I poked around

Re: Kevents/libc_r ?

2001-01-30 Thread 'Alfred Perlstein'
* Jeff Roberson [EMAIL PROTECTED] [010130 11:15] wrote: Is that true in -CURRENT as well? It looks to me like it calls kevents with a 0 timespec and then calls into the scheduler. libc_r tries most operations non-blocking before resorting to using poll(), this is what it's doing. * Jeff

Re: Kevents/libc_r ?

2001-01-30 Thread Kevin Mills
"Jeff Roberson" [EMAIL PROTECTED] writes: Is that true in -CURRENT as well? It looks to me like it calls kevents with a 0 timespec and then calls into the scheduler. * Jeff Roberson [EMAIL PROTECTED] [010130 11:05] wrote: Does anyone know if it's safe to use kevents with pthreads yet?

Re: Kevents/libc_r ?

2001-01-30 Thread 'Alfred Perlstein'
* Kevin Mills [EMAIL PROTECTED] [010130 11:56] wrote: "Jeff Roberson" [EMAIL PROTECTED] writes: Is that true in -CURRENT as well? It looks to me like it calls kevents with a 0 timespec and then calls into the scheduler. * Jeff Roberson [EMAIL PROTECTED] [010130 11:05] wrote:

using GDB with linuxthreads?

2001-01-30 Thread Jeannie Yang
Hi, I am having problems using gdb to debug my application. my application is using linuxthreads on FreeBSD v4.2-STABLE. i am using GNU gdb 4.18. I read that GDB needs to be patched in order to be able to debug applications using linuxthreads. However, the patch I found only made

Re: Snowhite and the Seven Dwarfs - The REAL story!

2001-01-30 Thread Giorgos Keramidas
On Mon, Jan 29, 2001 at 08:00:02PM +1100, Patryk Zadarnowski wrote: On Mon, 29 Jan 2001 00:23:48 -0800 (PST), Hahaha [EMAIL PROTECTED] wrote: Today, Snowhite was turning 18. The 7 Dwarfs always where very educated and polite with Snowhite. When they go out work at mornign, they promissed a

Re: Snowhite and the Seven Dwarfs - The REAL story!

2001-01-30 Thread Dan Langille
On 30 Jan 2001, at 3:19, Giorgos Keramidas wrote: of filtering is necessary though. Unless, somebody thinks that this is "censorship", and a new flame about humans rights spawns out of nowhere. We're not stopping anyone from saying anything. We're just stopping them from saying it on our

problem with memory allocation?

2001-01-30 Thread Alexander Hausner
Hi, what is this? I got this with FreeBSD-4.2-stable from yesterday. ~ 118 % ping www.think.com PING www1.think.com (63.210.36.229): 56 data bytes ping in free(): warning: modified (chunk-) pointer. 64 bytes from 63.210.36.229: icmp_seq=0 ttl=242 time=170.143 ms ^C --- www1.think.com ping

removing setgid kmem from top, collecting per-device swap stats

2001-01-30 Thread Thomas Moestl
Hi, I'm going to start working on making top work without setgid kmem. Is anyone already doing this? I don't want to waste my time... Most kmem_read calls are easy to replace (the variables are already exported as sysctls), the only exception is nextproc (for which I might add a sysctl, or

Re: removing setgid kmem from top, collecting per-device swap stats

2001-01-30 Thread Matt Dillon
:vm.swapdev1.total (this is the one that is currently hard to get) You can't move swapinfo into the kernel as a sysctl unless you solve this problem. Traversing the radix tree is expensive enough that the entire system will stall for a short period of time if you run the loop

Re: removing setgid kmem from top, collecting per-device swap stats

2001-01-30 Thread Thomas Moestl
On Tue, Jan 30, 2001 at 03:21:38PM -0800, Matt Dillon wrote: :vm.swapdev1.total (this is the one that is currently hard to get) You can't move swapinfo into the kernel as a sysctl unless you solve this problem. Traversing the radix tree is expensive enough that the entire system

Re: FreeBSD Linux emulation / arla 0.34.6

2001-01-30 Thread Chris Csanady
Chris [EMAIL PROTECTED] writes: I have discovered a rather interesting bug with this combination, and was wondering if anyone could point me in the right direction to help me track it down. The problem is that linux binaries which call getdirents on an afs directory do not report the

Re: removing setgid kmem from top, collecting per-device swap stats

2001-01-30 Thread Matt Dillon
: VOP_SWAPACCOUNT(nbp-b_vp, nbp); : BUF_KERNPROC(nbp); : BUF_STRATEGY(nbp); : :Now, I have to define the vop in vm_swap.c, where I can get the area :index from the block number in a clean way and frob my counters. :The same method could be used in

Re: Snowhite and the Seven Dwarfs - The REAL story!

2001-01-30 Thread Mike Silbersack
On Wed, 31 Jan 2001, Dan Langille wrote: On 30 Jan 2001, at 3:19, Giorgos Keramidas wrote: of filtering is necessary though. Unless, somebody thinks that this is "censorship", and a new flame about humans rights spawns out of nowhere. We're not stopping anyone from saying anything.

Re: removing setgid kmem from top, collecting per-device swap stats

2001-01-30 Thread Thomas Moestl
On Tue, Jan 30, 2001 at 04:17:55PM -0800, Matt Dillon wrote: : VOP_SWAPACCOUNT(nbp-b_vp, nbp); : BUF_KERNPROC(nbp); : BUF_STRATEGY(nbp); : :Now, I have to define the vop in vm_swap.c, where I can get the area :index from the block number in a clean way

Re: removing setgid kmem from top, collecting per-device swap stats

2001-01-30 Thread Matt Dillon
:Yep. I only thought I should keep the layering by using VOPs. But you :are right, swap_pager and vm_swap are dependent anyway, so this can :be justified, and things are not duplicated over the whole file. :So, is it OK with you if I do it the way you described? : : - thomas Yes, I

Re: Snowhite and the Seven Dwarfs - The REAL story!

2001-01-30 Thread Patryk Zadarnowski
On Tue, 30 Jan 2001, Mike Silbersack wrote: On Wed, 31 Jan 2001, Dan Langille wrote: On 30 Jan 2001, at 3:19, Giorgos Keramidas wrote: of filtering is necessary though. Unless, somebody thinks that this is "censorship", and a new flame about humans rights spawns out of nowhere.

Re: FreeBSD Linux emulation / arla 0.34.6

2001-01-30 Thread Love
Chris Csanady [EMAIL PROTECTED] writes: The patch below for arla fixes the problem. I believe that this might also be what is causing linux-netscape to wedge the machine (with home directories on afs), although I'm not positive. This patch does fix the directory problem, but

Where is ftp.FreeBSD.org?

2001-01-30 Thread Greg Black
I've been trying to lookup ftp.FreeBSD.org for the last couple of hours and getting timeouts and other silly stuff. Can anybody give me an IP address please? To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Where is ftp.FreeBSD.org?

2001-01-30 Thread Dan Langille
On 31 Jan 2001, at 13:51, Greg Black wrote: Can you name one? I mean a mirror that doesn't send you to ftp.FreeBSD.org for security patches etc, which is what happens on the mirrors I've tried -- they seem to mirror the html stuff only ... look for yourself: http://freebsdmirrors.org/ --

Re: Where is ftp.FreeBSD.org?

2001-01-30 Thread Greg Black
"Dan Langille" wrote: On 31 Jan 2001, at 13:51, Greg Black wrote: Can you name one? I mean a mirror that doesn't send you to ftp.FreeBSD.org for security patches etc, which is what happens on the mirrors I've tried -- they seem to mirror the html stuff only ... look for yourself:

Re: Where is ftp.FreeBSD.org?

2001-01-30 Thread Mike Silbersack
On Wed, 31 Jan 2001, Greg Black wrote: "Dan Langille" wrote: On 31 Jan 2001, at 13:51, Greg Black wrote: Can you name one? I mean a mirror that doesn't send you to ftp.FreeBSD.org for security patches etc, which is what happens on the mirrors I've tried -- they seem to mirror

Re: Where is ftp.FreeBSD.org?

2001-01-30 Thread Mike Silbersack
On Tue, 30 Jan 2001, Mike Silbersack wrote: Yeah, there are definite dns problems. It does still resolve here, though - you must be especially unlucky. Nevermind, ftp.freesoftware.com purged itself from my cache. ftp2+ still seem to work fine, though. /me sighs about the evilness of CNAME

Re: Where is ftp.FreeBSD.org?

2001-01-30 Thread Greg Black
Mike Silbersack wrote: On Tue, 30 Jan 2001, Mike Silbersack wrote: Yeah, there are definite dns problems. It does still resolve here, though - you must be especially unlucky. Nevermind, ftp.freesoftware.com purged itself from my cache. ftp2+ still seem to work fine, though. Ah,