Re: [Fwd: mkisofs | burncd not working in 5.0 ?]

2003-02-26 Thread Alexander Leidinger
On Tue, 25 Feb 2003 20:56:25 +0100
David Vidal Rodríguez <[EMAIL PROTECTED]> wrote:

> Alexander Leidinger wrote:
> > Please try the patch in from the mail to -current with the Message-ID
> > <[EMAIL PROTECTED]> and report if it works for
> > you.
> 
> I've applied the patch included here, but it leads to an error (the .rej 
> file shows it). I infer from the reject that a "while" has to be 
> replaced by an "if", and so I've edited it by hand.
> 
> The problem is that my system still shows the same behavior as before :(
> 
> Maybe I've applied the wrong patch?

No, but then the cause of the problem is not what I thought it is.

Bye,
Alexander.

-- 
Give a man a fish and you feed him for a day;
 teach him to use the Net and he won't bother you for weeks.

http://www.Leidinger.net   Alexander @ Leidinger.net
  GPG fingerprint = C518 BC70 E67F 143F BE91  3365 79E2 9C60 B006 3FE7

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message


Re: [Fwd: mkisofs | burncd not working in 5.0 ?]

2003-02-25 Thread David Vidal Rodríguez
Alexander Leidinger wrote:
Please try the patch in from the mail to -current with the Message-ID
<[EMAIL PROTECTED]> and report if it works for
you.
I've applied the patch included here, but it leads to an error (the .rej 
file shows it). I infer from the reject that a "while" has to be 
replaced by an "if", and so I've edited it by hand.

The problem is that my system still shows the same behavior as before :(

Maybe I've applied the wrong patch?

CU,
David.
diff -u -2 -r1.81 fifo_vnops.c
--- fifo_vnops.c13 Jan 2003 00:28:57 -  1.81
+++ fifo_vnops.c9 Feb 2003 17:32:16 -
@@ -227,5 +227,5 @@
}
if ((ap->a_mode & FREAD) && (ap->a_mode & O_NONBLOCK) == 0) {
-   while (fip->fi_writers == 0) {
+   if (fip->fi_writers == 0) {
VOP_UNLOCK(vp, 0, td);
error = tsleep((caddr_t)&fip->fi_readers,
@@ -234,4 +234,9 @@
if (error)
goto bad;
+   /*
+* We must have got woken up because we had a writer.
+* That (and not still having one) is the condition
+* that we must wait for.
+*/
}
}
@@ -243,16 +248,16 @@
}
} else {
-   while (fip->fi_readers == 0) {
+   if (fip->fi_readers == 0) {
VOP_UNLOCK(vp, 0, td);
-   /*
-* XXX: Some race I havn't located is solved
-* by timing out after a sec.  Race seen when
-* sendmail hangs here during boot /phk
-*/
error = tsleep((caddr_t)&fip->fi_writers,
-   PCATCH | PSOCK, "fifoow", hz);
+   PCATCH | PSOCK, "fifoow", 0);
vn_lock(vp, LK_EXCLUSIVE | LK_RETRY, td);
if (error)
goto bad;
+   /*
+* We must have got woken up because we had
+* a reader.  That (and not still having one)
+* is the condition that we must wait for.
+*/
}
}
***
*** 227,231 
}
if ((ap->a_mode & FREAD) && (ap->a_mode & O_NONBLOCK) == 0) {
-   while (fip->fi_writers == 0) {
VOP_UNLOCK(vp, 0, td);
error = tsleep((caddr_t)&fip->fi_readers,
--- 227,231 
}
if ((ap->a_mode & FREAD) && (ap->a_mode & O_NONBLOCK) == 0) {
+   if (fip->fi_writers == 0) {
VOP_UNLOCK(vp, 0, td);
error = tsleep((caddr_t)&fip->fi_readers,


Re: [Fwd: mkisofs | burncd not working in 5.0 ?]

2003-02-25 Thread Alexander Leidinger
On Tue, 25 Feb 2003 02:48:31 +0100
David Vidal Rodríguez <[EMAIL PROTECTED]> wrote:

> (forwarded from the NG comp.unix.bsd.freebsd.misc, from which I got no 
> answer)
> 
> Hi!
> 
> I'm somehow surprised that the following command pipe doesn't work any
> more in 5.0R:
> 
> $ mkisofs -J -r mydir | burncd -f /dev/acd1c -s 16 data - fixate

Please try the patch in from the mail to -current with the Message-ID
<[EMAIL PROTECTED]> and report if it works for
you.

Bye,
Alexander.

-- 
   Reboot America.

http://www.Leidinger.net   Alexander @ Leidinger.net
  GPG fingerprint = C518 BC70 E67F 143F BE91  3365 79E2 9C60 B006 3FE7

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message