Re: comments on proposed uthread_write.c changes

2003-09-08 Thread Dan Langille
On 7 Sep 2003 at 19:40, Dan Langille wrote: > On 7 Sep 2003 at 12:32, Daniel Eischen wrote: > > > On Sun, 7 Sep 2003, Dan Langille wrote: > > > > > A problem with pthreads and EOT has been identified. See PR 56274. It > > > was suggested the solution was pr

Re: Any workarounds for Verisign .com/.net highjacking?

2003-09-16 Thread Dan Langille
ging those records out of the zone before > loading it. Any ideas, either under djbdns or Bind 9? Sorry, only for bind8, as was posted to my local LUG list: http://achurch.org/bind-verisign-patch.html -- Dan Langille : http://www.langille.org/ ___

[PATCH] : libc_r/uthread/uthread_write.c

2003-09-16 Thread Dan Langille
(LOG_NOTICE, "zero has been returned in uthread_write.c; num = '%d'", num); + } + break; /* Check if the write has completed: */ } else if (num >= nbytes) -- Dan Langille : http://www.langille.org/ __

Re: [PATCH] : libc_r/uthread/uthread_write.c

2003-09-17 Thread Dan Langille
On 16 Sep 2003 at 20:49, Daniel Eischen wrote: > On Tue, 16 Sep 2003, Dan Langille wrote: > > > I've had preliminary success with this patch. More testing needs > > to be done, but in the meantime, I would appreciate reviews and > > comments. The patched co

Re: [PATCH] : libc_r/uthread/uthread_write.c

2003-09-19 Thread Dan Langille
need > to do read-before-write, so there will always be some unavoidable > stalls. My issue does not concern stalls. It concerns lost data bacause EOT of not correctly signalled. See http://www.freebsd.org/cgi/query- pr.cgi?pr=56274. But if I've missed the point, could someon

Re: [PATCH] : libc_r/uthread/uthread_write.c

2003-09-29 Thread Dan Langille
On 18 Sep 2003 at 7:50, Daniel Eischen wrote: > On Wed, 17 Sep 2003, Dan Langille wrote: > > > On 16 Sep 2003 at 20:49, Daniel Eischen wrote: > > > > > On Tue, 16 Sep 2003, Dan Langille wrote: > > > > > > > I've had preliminary success wit

Re: [PATCH] : libc_r/uthread/uthread_write.c

2003-09-29 Thread Dan Langille
On 29 Sep 2003 at 9:02, Daniel Eischen wrote: > On Mon, 29 Sep 2003, Dan Langille wrote: > > > On 18 Sep 2003 at 7:50, Daniel Eischen wrote: > > > > > > > > Right, this seems correct to me. > > > > All our testing on this patch has been succe

Re: [PATCH] : libc_r/uthread/uthread_write.c

2003-10-04 Thread Dan Langille
On 4 Oct 2003 at 10:17, Daniel Eischen wrote: > On Mon, 29 Sep 2003, Dan Langille wrote: > > > > All our testing on this patch has been successful. I'm going to do a > > few more tests on different hardware under 4.8-stable. > > > > What's the next

testing for substrings in perl

2003-10-05 Thread Dan Langille
Hi, I have a perl regex to test if a file resides under a particular directory. The test looks like this: if ($filename =~ $directory) { # yes, this filename resides under directory } This is working for most cases. However, it fails is the directory contains a +. For example: $filename =

Re: [PATCH] : libc_r/uthread/uthread_write.c

2003-10-06 Thread Dan Langille
On 6 Oct 2003 at 19:10, Daniel Eischen wrote: > Is your mailer screwed up? We're getting duplicates (a few > days later). I don't think so. Could they have been moderated? What do the headers say? -- Dan Langille : http://

non-root process and PID files

2003-10-27 Thread Dan Langille
the two, I think #1 is cleaner as it does not require another directory with special permissions. Any suggestions? -- Dan Langille : http://www.langille.org/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To

Re: non-root process and PID files

2003-10-27 Thread Dan Langille
On 27 Oct 2003 at 17:39, Oliver Eikemeier wrote: > Dan Langille wrote: > > > If a process starts up and does a setuid, should it be writing the > > PID file before or after the setuid? > > > > Two methods exists AFAIK: > > > > 1 - write your PID imm

Re: non-root process and PID files

2003-10-27 Thread Dan Langille
On Mon, 27 Oct 2003, Wes Peters wrote: > On Monday 27 October 2003 07:31 am, Dan Langille wrote: > > If a process starts up and does a setuid, should it be writing the > > PID file before or after the setuid? > > > > Two methods exists AFAIK: > > > > 1 - w

hosts_access(3) - correct usage?

2003-10-29 Thread Dan Langille
inet_ntoa(cli_addr.sin_addr), ntohs(cli_addr.sin_port)); close(newsockfd); continue; } V(mutex); #endif -- Dan Langille : http://www.langille.org/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/fre

Re: hosts_access(3) - correct usage?

2003-10-29 Thread Dan Langille
On 29 Oct 2003 at 17:10, Guido van Rooij wrote: > On Wed, Oct 29, 2003 at 09:38:50AM -0500, Dan Langille wrote: > > Is this the right way to use hosts_access? The code blows up during > > the hosts_access call. I'm told it runs OK on Linux/Solaris. I'm > >

Re: hosts_access(3) - correct usage?

2003-10-29 Thread Dan Langille
On 29 Oct 2003 at 18:26, Dan Langille wrote: > On 29 Oct 2003 at 17:10, Guido van Rooij wrote: > > > On Wed, Oct 29, 2003 at 09:38:50AM -0500, Dan Langille wrote: > > > Is this the right way to use hosts_access? The code blows up during > > > the hosts_access

libwrap crash

2003-10-30 Thread Dan Langille
come to use bast-fd from undef.unixathome.org.\"" (gdb) n 0x2809fb4c in _init () from /usr/lib/libwrap.so.3 (gdb) n Single stepping until exit from function _init, which has no line number information. Error accessing memory address 0x281a1e84: Bad address. (gdb -- Dan Langille : http://www.langille.org/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: libwrap crash

2003-10-30 Thread Dan Langille
On 30 Oct 2003 at 9:42, Dan Langille wrote: > I've been tracking down a libwrap call which crashes the application. > The crash occurs on line 395 of contrib/tcp_wrappers/options.c, but > I have no idea. I've been given some help in this offline. Apparently, the bacula

(Fwd) ip_output() does not checksum outer header

2002-01-27 Thread Dan Langille
->m_pkthdr.len, m_pullup() results et al and can find nothing out of the ordinary. This is driving me mad right now, can anybody shed any light on the problem? Regards, Bruce. --- End of forwarded message --- -- Dan Langille The FreeBSD Diary - http://freebsddiary.org/ - practi

shell scripts that hang around forever

2002-01-27 Thread Dan Langille
result='$RESULT' if [ $RESULT = 0 ] then cd ${MSGSDIR} while . do FILECOUNT=`ls | wc -l` if [ $FILECOUNT -ne 0 ] then ls | xargs -n 1 $HOME/scripts/test-freebsd-cvs.sh fi sleep 1 done rm -rf ${LOCKFILE} fi --

Re: shell scripts that hang around forever

2002-01-27 Thread Dan Langille
On 27 Jan 2002 at 20:18, Dan Nelson wrote: > In the last episode (Jan 27), Dan Langille said: > > Folks: have a look at this FreshPorts shell script and let me know if > > there is a better way to do this. > > Apart from maybe using echo instead of forking 'l

Re: shell scripts that hang around forever

2002-01-28 Thread Dan Langille
0 ] > > then > > cd ${MSGSDIR} > > while . > > do > > FILECOUNT=`ls | wc -l` > > > > if [ $FILECOUNT -ne 0 ] > > then > > ls | xargs -n 1 $HOME/scripts/test-freebsd-cvs.sh > > fi > &

Re: shell scripts that hang around forever

2002-01-28 Thread Dan Langille
On 27 Jan 2002 at 20:18, Dan Nelson wrote: > In the last episode (Jan 27), Dan Langille said: > > Folks: have a look at this FreshPorts shell script and let me know if > > there is a better way to do this. > > Apart from maybe using echo instead of forking 'l

is this character encoding or corrupted text?

2002-02-09 Thread Dan Langille
g vi, you will see "Matthias K^[,Av^[(Bppe". I'm wondering if there are special characters in there which were not well handled by the cvs-all process. My next question is how to properly handle these characters. Thanks. -- Dan Langille The FreeBSD Diary - http://freebsddiary.

file(1) returns amusing result

2002-02-17 Thread Dan Langille
GORIES= databases devel -- Dan Langille The FreeBSD Diary - http://freebsddiary.org/ - practical examples To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

php regex needed for PR numbers

2002-04-07 Thread Dan Langille
t working and working correctly. Our first attempts can be http://test.freshports.org/phorum/lists.php?f=1 under the thread titled "more PHP regex help wanted please". thanks. -- Dan Langille novice in training - http://www.freebsddiary.org/ To Unsubscribe: send mail to [EMAIL PROTE

using cvsup to put the same collection in two places

2002-05-04 Thread Dan Langille
n) which merely pointed at the original collection. Sadly, this didn't create a /home/freebsddiary/sup/phpAdsAdmin as I hoped. Any clues? Thanks. -- Dan Langille The FreeBSD Diary - http://freebsddiary.org/ - practical examples To Unsubscribe: send mail to [EMAIL PROTECTED] with &qu

remotely restoring over a live working system

2002-05-15 Thread Dan Langille
higher risk. cheers -- Dan Langille The FreeBSD Diary - http://freebsddiary.org/ - practical examples To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: remotely restoring over a live working system

2002-05-16 Thread Dan Langille
On 15 May 2002 at 14:55, Doug White wrote: > On Wed, 15 May 2002, Dan Langille wrote: > > > A disk in remote 4.5-stable box started to develop bad clusters. The > > hosting company replaced the drive for me. I now have a 4.5-RELEASE > > system (they have 4.5-RELEA

how to automagically restart net/pptpclient?

2002-05-27 Thread Dan Langille
inated (normal). -- Dan Langille The FreeBSD Diary - http://freebsddiary.org/ - practical examples To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: how to automagically restart net/pptpclient?

2002-05-28 Thread Dan Langille
On 28 May 2002 at 9:32, Dominic Marks wrote: > On Tue, May 28, 2002 at 12:57:52AM -0400, Dan Langille wrote: > > I have installed net/pptpclient (1.0.3). About 5 times a week, it dies > > and must be restarted. Does anyone have a script which checks and > > restarts it if

cvsup doesn't get me what I want

2002-06-03 Thread Dan Langille
Sticky Options: (none) Existing Tags: cvs (revision: 1.1.1.1) FreshPorts2 (revision: 1.1.1.1) I just don't get it. Why doesn't tag=FreshPorts2 work? cheers -- Dan Langille The FreeBSD Diary - http://freebsddiary.org/

Re: cvsup doesn't get me what I want

2002-06-04 Thread Dan Langille
On 4 Jun 2002 at 8:37, John Polstra wrote: > In article <[EMAIL PROTECTED]>, > Dan Langille <[EMAIL PROTECTED]> wrote: > > Folks, I'm having trouble understanding this problem. I'm trying to use > > cvsup to get stuff onto my website. This

commit messages filtering / FreshSource

2002-06-04 Thread Dan Langille
will cover all commits, not just those in the ports tree. -- Dan Langille To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: cvsup doesn't get me what I want

2002-06-07 Thread Dan Langille
On 6 Jun 2002 at 21:05, John Polstra wrote: > In article <[EMAIL PROTECTED]>, > Dan Langille <[EMAIL PROTECTED]> wrote: > > On 4 Jun 2002 at 8:37, John Polstra wrote: > > > I'll help you figure this out if you'll send me the follow

Re: how to automagically restart net/pptpclient?

2002-06-13 Thread Dan Langille
On 28 May 2002 at 21:08, Lukas Ertl wrote: > On Tue, 28 May 2002, Dan Langille wrote: > > > That looks good. I've tried it, but have been unable to connect to the > > office, which is running an MS PPtP server. I know the *can* work > > because pptp-client can co

mpd for pptp - can't connect

2002-06-13 Thread Dan Langille
vice: OPEN event in state DOWN [vpn] pausing 7 seconds before open [vpn] device is now in state DOWN [vpn] device: OPEN event in state DOWN [vpn] device is now in state DOWN pptp0-0: peer call disconnected res=zero? err=none pptp0-0: killing channel pptp0: closing connection with 1.2.3.4:1723 pptp0: killing connection with 1.2.3.4:1723 -- Dan Langille To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: The problem with FreeBSD

2002-06-18 Thread Dan Langille
'll ditch FreeBSD and load NetBSD > right now. I wonder if NetBSDDiary is available... -- Dan Langille To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

serial console com1 to com1 == login race condition?

2002-08-09 Thread Dan Langille
each box in advance of a problem arising. But won't I get a race condition with each box thinking the other is trying to login? [1] - my apologies to those with whom I have already discussed this issue. -- Dan Langille I'm looking for a computer job: http://www.freebsddiary.org/dan_la

Re: serial console com1 to com1 == login race condition?

2002-08-09 Thread Dan Langille
On 9 Aug 2002 at 12:27, James Housley wrote: > Dan Langille wrote: > > I have two remote boxes. My colocation hosts have strung a crossover > > serial cable from com1 to com1 on these boxes. The idea is that if I > > paint myself into a corner on one box, I can get acces

Re: serial console com1 to com1 == login race condition?

2002-08-09 Thread Dan Langille
ct him to have in reply. Thanks folks. [1] - http://www.freebsd.org/cgi/getmsg.cgi?fetch=88296+0+current/freebsd- stable [2] - I won't be doing that again. Once the serial consoles are in place, I'll be upgrading them one at a time. -- Dan Langille I'm looking for a computer job

Re: why does this sendmail connection take so long?

2002-08-28 Thread Dan Langille
On 22 Aug 2002 at 18:28, Michael Scheidell wrote: > - Original Message - > From: ""Dan Langille"" <[EMAIL PROTECTED]> > Newsgroups: local.freebsd.hackers > Sent: Thursday, August 22, 2002 1:41 PM > Subject: why does this sendmail connection take

Re: why does this sendmail connection take so long?

2002-08-29 Thread Dan Langille
On 28 Aug 2002 at 16:43, Terry Lambert wrote: > Dan Langille wrote: > > I've tested this from several boxes behind my firewall each time > > emailing to a box outside the firewall. The test was: > > > >echo 'hi there' | mail [EMAIL PROTECT

Re: why does this sendmail connection take so long?

2002-08-29 Thread Dan Langille
; DATA 250 2.1.5 <[EMAIL PROTECTED]>... Recipient ok 354 Enter mail, end with "." on a line by itself >>> . 250 2.0.0 g7THaSRq079062 Message accepted for delivery [EMAIL PROTECTED] Sent (g7THaSRq079062 Message accepted for delivery) Closing connection to xeon.example.org. >>> QUIT 221 2.0.0 xeon.example.org closing connection [dan@xeon:~] $ Thank you. -- Dan Langille I'm looking for a computer job: http://www.freebsddiary.org/dan_langille.php To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: why does this sendmail connection take so long?

2002-08-29 Thread Dan Langille
PROTECTED]> >>> DATA 250 2.1.5 <[EMAIL PROTECTED]>... Recipient ok 354 Enter mail, end with "." on a line by itself >>> . 250 2.0.0 g7TIDVRq084370 Message accepted for delivery [EMAIL PROTECTED] Sent (g7TIDVRq084370 Message accepted for delivery) Closing connection to localhost.example.org. >>> QUIT 221 2.0.0 xeon.example.org closing connection [dan@xeon:/etc/namedb] $ Thank you. -- Dan Langille I'm looking for a computer job: http://www.freebsddiary.org/dan_langille.php To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: why does this sendmail connection take so long?

2002-08-29 Thread Dan Langille
guess > is you have IP firewalling enabled (either IPFW or IPF) and default to drop > or have ip6fw or ipf rulesets that effectively to do the same. I am using ipf with "pass out from any to any/pass out from any to any". FWIW: in this case localhost.example.org is the DNS serve

Re: why does this sendmail connection take so long?

2002-08-29 Thread Dan Langille
t the idea (I hope). You guessed very well. Making the above changes fixed the problem. And I didn't know about the -6 switch on ipf. Applying the same solution to another box (also running ipf and having similar problems). Thank you for your time and efforts. -- Dan Langille

<    1   2