call system function in logout.c ceate zombie process

1999-08-23 Thread Thomas Wahyudi
Hi all, if I put command like system(/usr/local/bin/radacct) in logout.c everything goes normal but _if_ user logout normally that is, at prompt user type logout the problem is when user login using ssh and connection terminated by accident such as the client hang and have reboot, utmp wasn't

Re: proposed change for /etc/periodic/* scripts

1999-08-23 Thread Cillian Sharkey
This may not be a good idea. I often check daily reports to see if a disk has suddenly filled or had been gradually filling over a long period of time - you wouldn't be able to get this info if you print stuff selectively. in the case of df, one could set whether you want full df status OR

Re: ls(1) options affecting -l long format

1999-08-23 Thread Sheldon Hearn
On Mon, 23 Aug 1999 13:13:14 +0200, Sheldon Hearn wrote: The -n option will imply -l, but -o will be a no-op unless at least one of -n and -l is specified. Manpage changes will be included in the deal. The diff for this change is available from:

[Fwd: Re: cvs commit: doc/en/handbook/ports chapter.sgml]

1999-08-23 Thread Daniel C. Sobral
While going through old cvs commit log, I spotted this: Index: param.h === RCS file: /home/ncvs/src/sys/sys/param.h,v retrieving revision 1.50 diff -u -r1.50 param.h --- param.h 1999/06/20 08:34:24 1.50 +++ param.h

Re: anybody love qsort.c?

1999-08-23 Thread Ville-Pertti Keinonen
gurne...@efn.org (John-Mark Gurney) writes: Christopher Seiwald scribbled this message on Aug 18: It's a pretty straightforward change to bypass the insertion sort for large subsets of the data. If no one has a strong love for qsort, I'll educate myself on how to make and contribute this

building -STABLE release

1999-08-23 Thread Wilko Bulte
What would be the right releasetag to use in order to build a 3.2-STABLE 'release' (make release)? Would that be RELENG_3 ? From looking at 'cvs log Makefile' in the top of the source tree I get: symbolic names: RELENG_3_2_PAO: 1.222.2.4.0.2 RELENG_3_2_PAO_BP: 1.222.2.4

Re: Mandatory locking?

1999-08-23 Thread Ville-Pertti Keinonen
g...@lemis.com (Greg Lehey) writes: Again, if we have two concurrent transactions, we stand to gain money: the updated balance is likely not to know about the other transaction, and will thus forget one of the deductions. Now I suppose you're going to come and say that this is bad

Re: Mandatory locking?

1999-08-23 Thread Chuck Robey
On 23 Aug 1999, Ville-Pertti Keinonen wrote: g...@lemis.com (Greg Lehey) writes: Again, if we have two concurrent transactions, we stand to gain money: the updated balance is likely not to know about the other transaction, and will thus forget one of the deductions. Now I suppose

new device driver

1999-08-23 Thread Roger Hardiman
Hi, A friend (Juha) has written a new device driver for another batch of video capture cards from LifeVide, Genoa and ATIech which use the Zoran and Philips SAA chipset. The driver is likely to be called ztv If I add this to FreeBSD, where is the best place Keep it in /usr/src/sys/pci Or add

Re: proposed change for /etc/periodic/* scripts

1999-08-23 Thread David Scheidt
On Mon, 23 Aug 1999, Cillian Sharkey wrote: Keeping records would be handy alright..but cutting out all the everything is ok msgs would reduce reading time..having an option for full report OR just the important results should satisfy everyone.. What I do run things through a filter that

FreeBSD FIFO implementation

1999-08-23 Thread Zhihui Zhang
While looking at the FIFO implementation, I understand that a FIFO is implemented as a socket. But I am not sure where the data in a FIFO is stored (mbuf or filesystem buf structure?) and how it manages the red/write pointers. Can anyone give me a general picture of this? Any help is

SPARC?

1999-08-23 Thread Dennis
I heard a rumor that freebsd runs on a sparc, but I dont see any backing for that. Is it in the works? dennis To Unsubscribe: send mail to majord...@freebsd.org with unsubscribe freebsd-hackers in the body of the message

Re: building -STABLE release

1999-08-23 Thread Bill Fumerola
On Mon, 23 Aug 1999, Wilko Bulte wrote: What would be the right releasetag to use in order to build a 3.2-STABLE 'release' (make release)? Would that be RELENG_3 ? Yes. Though RELENG_3 is a branch tag. RELENG_3_2_PAO: 1.222.2.4.0.2 RELENG_3_2_PAO_BP: 1.222.2.4

Re: mmap mapped segment length

1999-08-23 Thread Daniel C. Sobral
Wes Peters wrote: [...] Thanks to everyone who responded, and for the politeness of the responses in the face of the stupidity of the original question. People are usually more polite when they are, err, having fun. ;- -- Daniel C. Sobral(8-DCS) d...@newsguy.com

Re: Mandatory locking?

1999-08-23 Thread Daniel C. Sobral
Greg Lehey wrote: all done in the kernel anyway. In userland, we'd use a different example: I make a number of financial transactions over the Internet. In each case, the system checks my account balance, transfers the money and deducts it from my account: 1. Check balance.

Re: Mandatory locking?

1999-08-23 Thread Daniel C. Sobral
Daniel O'Connor wrote: On 23-Aug-99 Greg Lehey wrote: I'm a little surprised that there's any objection to the concept of mandatory locking. In transaction processing, locking is not optional, and if any process at all can access a file or set of files without locking, you can't

Re: SPARC?

1999-08-23 Thread Jason Thorpe
On Mon, 23 Aug 1999 11:28:20 -0400 Dennis den...@etinc.com wrote: I heard a rumor that freebsd runs on a sparc, but I dont see any backing for that. Is it in the works? FreeBSD does not run on the SPARC. I think they've been talking about it for ... what, 5 years now... but it never

Re: SPARC?

1999-08-23 Thread Matthew Jacob
On Mon, 23 Aug 1999 11:28:20 -0400 Dennis den...@etinc.com wrote: I heard a rumor that freebsd runs on a sparc, but I dont see any backing for that. Is it in the works? FreeBSD does not run on the SPARC. I think they've been talking about it for ... what, 5 years now... but it

[freebsdcon] radisson reservation

1999-08-23 Thread Jun-ichiro itojun Hagino
(I believe it got bounced due to my mistake in To: line. sorry if you got it multiple times) Hello, if this mailing list is inappropriate please tell me so. I contacted radisson hotels for FreeBSDCon reservation with special discount, to get the following

Re: Mandatory locking?

1999-08-23 Thread Warner Losh
When I did a remote geographic disk based mirroring product a few years ago, I just had an ioctl that said that this disk was special for a while. Then the open routine would fail. This flag was cleared in the close routine (and by the companion ioctl). I did allow users to open the device w/o

Re: [freebsdcon] radisson reservation

1999-08-23 Thread Bill Fumerola
On Tue, 24 Aug 1999, Jun-ichiro itojun Hagino wrote: I contacted radisson hotels for FreeBSDCon reservation with special discount, to get the following email - they don't know about special rate code FreeBSDCon. What is the exact code for reservation? Do any of you

Re: SPARC?

1999-08-23 Thread Narvi
On Mon, 23 Aug 1999, Dennis wrote: I heard a rumor that freebsd runs on a sparc, but I dont see any backing for that. Is it in the works? dennis It is more correct to say that it passes in and out of the thoughts of people from time to time, with very little code that has actually

Re: proposed change for /etc/periodic/* scripts

1999-08-23 Thread Garance A Drosihn
At 9:59 AM +0100 8/23/99, Cillian Sharkey wrote: * if there are no passwd/group diffs found, don't print anything out (not even the header). Same for setuid etc. diffs. I have one change to one of the scripts, the one checking for mail spool files. I changed it to recognize the spool file

Re: proposed change for /etc/periodic/* scripts

1999-08-23 Thread James E. Housley
Garance A Drosihn wrote: I think this would need to be knob-ized. I will ignore these status reports for some time, and then some event comes up where I am interested in reviewing all of them. If a partition goes over 90%, for instance, I will want to know if it's been growing 1% a week

Re: Mandatory locking?

1999-08-23 Thread Garance A Drosihn
At 3:28 PM +0930 8/23/99, Greg Lehey wrote: I'm a little surprised that there's any objection to the concept of mandatory locking. In transaction processing, locking is not optional, and if any process at all can access a file or set of... For what it's worth, I also like the idea of

Re: Mandatory locking?

1999-08-23 Thread Garance A Drosihn
At 11:29 AM -0400 8/23/99, Chuck Robey wrote: I think mandatory locking should exist, but only be available to root. If a program needs this, it must run with root privs, so that ordinary users cannot wedge the machine, but (as usual) root can shoot himself in the foot (traditional Unix

Re: Mandatory locking?

1999-08-23 Thread Garance A Drosihn
At 1:21 AM +0900 8/24/99, Daniel C. Sobral wrote: Well, I'd say advisory lock does the job if the software is written right, and if the software is not written right, mandatory locking won't help. Let's give an example. You right a program using mandatory locking making access to a file. I

Re: Mandatory locking?

1999-08-23 Thread Garance A Drosihn
At 1:11 AM +0900 8/24/99, Daniel C. Sobral wrote: Daniel O'Connor wrote: I think its a good idea, and hey if people object it can always be an option like - option NO_MANDATORY_LOCKING Phew, that was tough. When introducing security holes, the default should be the hole not being present.

Re: [freebsdcon] radisson reservation

1999-08-23 Thread Kenneth D. Merry
Bill Fumerola wrote... On Tue, 24 Aug 1999, Jun-ichiro itojun Hagino wrote: I contacted radisson hotels for FreeBSDCon reservation with special discount, to get the following email - they don't know about special rate code FreeBSDCon. What is the exact code for

Re: [freebsdcon] radisson reservation

1999-08-23 Thread Bill Fumerola
On Mon, 23 Aug 1999, Kenneth D. Merry wrote: Unfortunately, you have to call the local hotel to get reservations, and not the toll-free national hotline. The hotel in Berkeley doesn't have a toll free number, so after sitting on hold with the Berkeley Radission for 15 minutes, burning long

Re: [freebsdcon] radisson reservation

1999-08-23 Thread Kenneth D. Merry
Bill Fumerola wrote... On Mon, 23 Aug 1999, Kenneth D. Merry wrote: Unfortunately, you have to call the local hotel to get reservations, and not the toll-free national hotline. The hotel in Berkeley doesn't have a toll free number, so after sitting on hold with the Berkeley Radission for

Re: Mandatory locking?

1999-08-23 Thread Mark Murray
Now I suppose you're going to come and say that this is bad programming, and advisory locking would do the job if the software is written right. Correct. You could also use the same argument to say that memory protection isn't necessary, because a correctly written program doesn't

Re: L440GX+ Server Board

1999-08-23 Thread Luiz Morte da Costa Junior
Hi list, About the problem bellow, I bought a 2940 Adaptec Ultra2 Wide SCSI controller, but it didn't work too. I wrote to Justin T. Gibbs and he told me that my problem is not SCSI. Somebody has any idea? []s, Luiz Morte da Costa Junior Analista de RedesE-mail:

Re: proposed change for /etc/periodic/* scripts

1999-08-23 Thread Duncan Barclay
On 23-Aug-99 Cillian Sharkey wrote: yes perhaps an /etc/periodic.conf would be good, to control the level of verbosity and/or set options for each script ? I've hacked periodic here so that the scripts can be turned off with knobs in a periodic.conf file. This would simplify customizing new

Re: L440GX+ Server Board

1999-08-23 Thread Kevin Lynn
Has anyone else gotten this server board to work? I've got an N440BX and have been considering getting the L440GX+ but haven't because I don't know if it works.. Kevin On Mon, 23 Aug 1999, Luiz Morte da Costa Junior wrote: Hi list, About the problem bellow, I bought a 2940 Adaptec Ultra2

Re: Mandatory locking?

1999-08-23 Thread Garance A Drosihn
At 10:12 PM +0200 8/23/99, Mark Murray wrote: Folk are all skirting around a very convenient (and necessary) loophole; in cases where there _is_ mandatory locking, there is always some meta-user which is allowed to violate this. If we include non-unix systems in the discussion, this isn't

Re: Mandatory locking?

1999-08-23 Thread Chuck Robey
On Mon, 23 Aug 1999, Garance A Drosihn wrote: At 11:29 AM -0400 8/23/99, Chuck Robey wrote: I think mandatory locking should exist, but only be available to root. If a program needs this, it must run with root privs, so that ordinary users cannot wedge the machine, but (as usual) root can

Re: Mandatory locking?

1999-08-23 Thread Wes Peters
Chuck Robey wrote: I think Garrett's fears are of folks unwittingly wedging machines too easily, so real mandatory locking ought to be restricted to programs that root can set up. And those fears are well-founded, but your proposed solution just creates another set of bottlenecks. Making

Re: Mandatory locking?

1999-08-23 Thread Greg Lehey
On Monday, 23 August 1999 at 15:28:01 -0400, Garance A Drosihn wrote: At 3:28 PM +0930 8/23/99, Greg Lehey wrote: I'm a little surprised that there's any objection to the concept of mandatory locking. In transaction processing, locking is not optional, and if any process at all can access a

Re: [freebsdcon] radisson reservation

1999-08-23 Thread itojun
Unfortunately, you have to call the local hotel to get reservations, and not the toll-free national hotline. The hotel in Berkeley doesn't have a toll free number, so after sitting on hold with the Berkeley Radission for 15 minutes, burning long distance money, I decided to call the

Re: setting up -STABLE for hack contest

1999-08-23 Thread Dave Walton
Geoff Rehmet writes: Also have a look at ports/security/nmap, and go to www.insecure.org. Hm, just did that. While reading up on nmap, I saw this: TCP Initial Window -- This simply involves checking the window size on returned packets. [...] In their completely rewritten TCP stack

Re: Mandatory locking?

1999-08-23 Thread Andrew Reilly
Hi Greg, hackers list, I don't want to express an opinion about the need or otherwise for mandatory locking, but I would appreciate a teensy clarification of the problem domain: On Mon, Aug 23, 1999 at 05:43:45PM +0930, Greg Lehey wrote: To write a block to a RAID-5 device, you need to:

Re: Mandatory locking?

1999-08-23 Thread Tim Vanderhoek
On Mon, Aug 23, 1999 at 03:28:01PM -0400, Garance A Drosihn wrote: Anyway, I am also puzzled as to why there would be much objection to the option of mandatory locking. My initial systems-programming If you provide mandatory locks that can be broken, then many of the objections may

Re: Mandatory locking?

1999-08-23 Thread Tim Vanderhoek
On Mon, Aug 23, 1999 at 10:12:38PM +0200, Mark Murray wrote: In process-space, this is the kernel. In file-space, this should be root. Processes that require mandatory locking must revoke superuser before attempting locks. I don't like restricting the breaking of mandatory locks to the

Re: anybody love qsort.c?

1999-08-23 Thread Tim Vanderhoek
On Mon, Aug 23, 1999 at 12:28:32AM -0700, Christopher Seiwald wrote: The alteration that I've tried and tested is to have the isort bail back to qsort if it does more than N swaps. I put N at 1024, which Perhaps a ratio: #comparisons : # swaps If the ratio gets too high, then bail. --

Re: setting up -STABLE for hack contest

1999-08-23 Thread Jason Thorpe
On Mon, 23 Aug 1999 17:44:47 -0700 Dave Walton wal...@nordicrecords.com wrote: Hm, just did that. While reading up on nmap, I saw this: TCP Initial Window -- This simply involves checking the window size on returned packets. [...] In their completely rewritten TCP stack

Re: Mandatory locking?

1999-08-23 Thread Christopher Masto
The thing about well-intentioned but incorrect locking code is that it will appear to work fine, until it trips over the one code path where it forgets to lock some file that it should have locked. And even then, the code will work just fine, until multiple processes are accessing that file

Re: Mandatory locking?

1999-08-23 Thread Chuck Robey
On Mon, 23 Aug 1999, Christopher Masto wrote: The thing about well-intentioned but incorrect locking code is that it will appear to work fine, until it trips over the one code path where it forgets to lock some file that it should have locked. And even then, the code will work just fine,

Re: Mandatory locking?

1999-08-23 Thread Christopher Masto
On Mon, Aug 23, 1999 at 10:59:10PM -0400, Chuck Robey wrote: Dunno about that.. if you're using advisory locking, you know to say lock the file, then read the data, do your calculation, write it out, and unlock. This manditory locking sounds like an invitation for disaster. I don't need

Re: Mandatory locking?

1999-08-23 Thread Chuck Robey
On Mon, 23 Aug 1999, Christopher Masto wrote: Bleah.. I can't count the number of times I've seen idiotic code like: open file read data close file open file for write write data close file Mandatory locking of the type above doesn't force such a thing to work. What has that code you

Re: Mandatory locking?

1999-08-23 Thread Greg Lehey
On Monday, 23 August 1999 at 23:11:30 -0400, Christopher Masto wrote: On Mon, Aug 23, 1999 at 10:59:10PM -0400, Chuck Robey wrote: Dunno about that.. if you're using advisory locking, you know to say lock the file, then read the data, do your calculation, write it out, and unlock. This

Re: Mandatory locking?

1999-08-23 Thread Christopher Masto
On Mon, Aug 23, 1999 at 11:16:21PM -0400, Chuck Robey wrote: On Mon, 23 Aug 1999, Christopher Masto wrote: Bleah.. I can't count the number of times I've seen idiotic code like: open file read data close file open file for write write data close file Mandatory locking of

Re: Mandatory locking?

1999-08-23 Thread Christopher Masto
On Tue, Aug 24, 1999 at 12:52:10PM +0930, Greg Lehey wrote: No, I think you're confusing opening and locking. It's something like this: User 1User 2 open file open file lock file read file (blocks) diddle file

Re: Mandatory locking?

1999-08-23 Thread Greg Lehey
On Monday, 23 August 1999 at 23:34:34 -0400, Christopher Masto wrote: On Tue, Aug 24, 1999 at 12:52:10PM +0930, Greg Lehey wrote: No, I think you're confusing opening and locking. It's something like this: User 1 User 2 open fileopen file

Re: Mandatory locking?

1999-08-23 Thread Greg Lehey
On Monday, 23 August 1999 at 23:27:27 -0400, Christopher Masto wrote: On Mon, Aug 23, 1999 at 11:16:21PM -0400, Chuck Robey wrote: On Mon, 23 Aug 1999, Christopher Masto wrote: Bleah.. I can't count the number of times I've seen idiotic code like: open file read data close file open file

network performance vs. linux on small transfers

1999-08-23 Thread Wayne Cuddy
I am involved in a messaging system at work in which we need to send/receive large amounts of small (one line messages) SMTP messages. We are currently using Sendmail 8.9.3 on HPUX. Our application sends messages down a FIFO to a daemon process that is reading from the FIFO. This process then

Re: network performance vs. linux on small transfers

1999-08-23 Thread Wes Peters
Wayne Cuddy wrote: I am involved in a messaging system at work in which we need to send/receive large amounts of small (one line messages) SMTP messages. We are currently using Sendmail 8.9.3 on HPUX. Our application sends messages down a FIFO to a daemon process that is reading from

Re: network performance vs. linux on small transfers

1999-08-23 Thread David Greenman
I am involved in a messaging system at work in which we need to send/receive large amounts of small (one line messages) SMTP messages. We are currently using Sendmail 8.9.3 on HPUX. Our application sends messages down a FIFO to a daemon process that is reading from the FIFO. This process then

Re: several messages

1999-08-23 Thread Wayne Cuddy
Thank you for your reply. At what point should I set this socket option? I am assuming right after the socket is allocated?? I will try this and post my results tomorrow night. For those wondering, I cannot just execute Sendmail directly, there are many architectural reasons for this

Re: network performance vs. linux on small transfers

1999-08-23 Thread kadal
On Tue, 24 Aug 1999, Wayne Cuddy wrote: Date: Tue, 24 Aug 1999 00:38:21 -0400 (EDT) From: Wayne Cuddy wa...@crb-web.com To: FreeBSD Hackers List freebsd-hackers@FreeBSD.ORG Subject: network performance vs. linux on small transfers I am involved in a messaging system at work in which we

Re: several messages

1999-08-23 Thread Mark J. Taylor
As an (former) implementer of fast TCP/IP peer-peer communications, I'd have to agree with Dave, and say that it is definitely the TCP_NODELAY option. You'll find that disabling the TCP-ACK delay will greatly increase your performace. The reason that it is so slow is because the TCP/IP stack is

Re: network performance vs. linux on small transfers

1999-08-23 Thread Alfred Perlstein
On Tue, 24 Aug 1999, kadal wrote: On Tue, 24 Aug 1999, Wayne Cuddy wrote: Date: Tue, 24 Aug 1999 00:38:21 -0400 (EDT) From: Wayne Cuddy wa...@crb-web.com To: FreeBSD Hackers List freebsd-hackers@FreeBSD.ORG Subject: network performance vs. linux on small transfers I am

Re: several messages

1999-08-23 Thread John-Mark Gurney
Wayne Cuddy scribbled this message on Aug 24: Thank you for your reply. At what point should I set this socket option? I am assuming right after the socket is allocated?? I will try this and post my results tomorrow night. For those wondering, I cannot just execute Sendmail directly,

<    1   2