Re: help needed to fix contrib/ee crash/exit when receiving SIGWINCH

2009-10-23 Thread Eygene Ryabinkin
Ed, good day. Fri, Oct 23, 2009 at 07:13:01PM +0200, Ed Schouten wrote: > Have you sent it to Thomas Dickey as well? Sent the patch to bug-ncur...@gnu.org. Do you think that I should send it to Thomas directly as well? -- Eygene ____ _.--. # \`.|\.....-'` `-._.-'

[Fwd: Failure to boot from HD formatted not by FreeBSD]

2009-10-23 Thread Andrew Lankford
I mentioned that I've set up my laptop to boot using the Windows Vista boot menu. I have, and I needed to copy /boot/boot1 from 7-stable to my NTFS partition in order to successfully boot to my FreeBSD 8.0 partition. Last night, I tried replacing the 7-stable boot1 block with a version from

Re: semaphores between processes

2009-10-23 Thread Daniel Eischen
On Fri, 23 Oct 2009, Andrew Gallatin wrote: Daniel Eischen wrote: We already use umtx. This really is a hack and I wouldn't advocate it. I'm not sure how you could make it work and not break existing ability to return appropriate error codes without slowing down the path in the non-shared c

Re: help needed to fix contrib/ee crash/exit when receiving SIGWINCH

2009-10-23 Thread Ed Schouten
* Eygene Ryabinkin wrote: > The problem should be healed with the attached patch. Ah, thanks. I looked at this some time ago but I also discovered ncurses was to blame. I didn't have any time to look at it back then, so I obviously forgot. Have you sent it to Thomas Dickey as well? -- Ed Scho

Re: help needed to fix contrib/ee crash/exit when receiving SIGWINCH

2009-10-23 Thread Alexander Best
Eygene Ryabinkin schrieb am 2009-10-23: > Gentlemen, good day. > Fri, Oct 23, 2009 at 02:02:38PM +0200, Dag-Erling Sm??rgrav wrote: > > src/contrib/ee/ee.c in 8: > > in = wgetch(text_win); > > if (in == -1) > > exit(0); /* without this exit

Re: help needed to fix contrib/ee crash/exit when receiving SIGWINCH

2009-10-23 Thread Eygene Ryabinkin
Fri, Oct 23, 2009 at 06:32:38PM +0200, Alexander Best wrote: > thanks a million. for me the patch works great. :) You're welcome ;)) > the sooner it gets committed the better. ;) It may well break something else. I am not 100% sure that this patch is the proper thing -- curses code is a bit new

Re: help needed to fix contrib/ee crash/exit when receiving SIGWINCH

2009-10-23 Thread Alexander Best
Eygene Ryabinkin schrieb am 2009-10-23: > Gentlemen, good day. > Fri, Oct 23, 2009 at 02:02:38PM +0200, Dag-Erling Sm??rgrav wrote: > > src/contrib/ee/ee.c in 8: > > in = wgetch(text_win); > > if (in == -1) > > exit(0); /* without this exit

Re: semaphores between processes

2009-10-23 Thread Andrew Gallatin
Daniel Eischen wrote: We already use umtx. This really is a hack and I wouldn't advocate it. I'm not sure how you could make it work and not break existing ability to return appropriate error codes without slowing down the path in the non-shared case. You'd have to check to see if the addres

Re: semaphores between processes

2009-10-23 Thread Daniel Eischen
On Fri, 23 Oct 2009, Andrew Gallatin wrote: Daniel Eischen wrote: On Fri, 23 Oct 2009, Andrew Gallatin wrote: It would be great if they were, but that discussion was 6 months ago, and nothing seems to have happened. Plus we need to support at least 7.X and probably 6, so any changes here mig

Re: help needed to fix contrib/ee crash/exit when receiving SIGWINCH

2009-10-23 Thread Eygene Ryabinkin
Gentlemen, good day. Fri, Oct 23, 2009 at 02:02:38PM +0200, Dag-Erling Sm??rgrav wrote: > src/contrib/ee/ee.c in 8: > > in = wgetch(text_win); > if (in == -1) > exit(0); /* without this exit ee will go into an >

Re: semaphores between processes

2009-10-23 Thread Andrew Gallatin
Daniel Eischen wrote: On Fri, 23 Oct 2009, Andrew Gallatin wrote: Daniel Eischen wrote: On Fri, 23 Oct 2009, John Baldwin wrote: On Thursday 22 October 2009 5:17:07 pm Daniel Eischen wrote: On Thu, 22 Oct 2009, Andrew Gallatin wrote: Daniel Eischen wrote: On Thu, 22 Oct 2009, Andrew Gall

Re: semaphores between processes

2009-10-23 Thread Daniel Eischen
On Fri, 23 Oct 2009, Andrew Gallatin wrote: Daniel Eischen wrote: On Fri, 23 Oct 2009, John Baldwin wrote: On Thursday 22 October 2009 5:17:07 pm Daniel Eischen wrote: On Thu, 22 Oct 2009, Andrew Gallatin wrote: Daniel Eischen wrote: On Thu, 22 Oct 2009, Andrew Gallatin wrote: Hi, We'r

Re: semaphores between processes

2009-10-23 Thread John Baldwin
On Friday 23 October 2009 10:56:06 am Daniel Eischen wrote: > On Fri, 23 Oct 2009, John Baldwin wrote: > > > On Thursday 22 October 2009 5:17:07 pm Daniel Eischen wrote: > >> On Thu, 22 Oct 2009, Andrew Gallatin wrote: > >> > >>> Daniel Eischen wrote: > On Thu, 22 Oct 2009, Andrew Gallatin wr

Re: semaphores between processes

2009-10-23 Thread Andrew Gallatin
Daniel Eischen wrote: On Fri, 23 Oct 2009, John Baldwin wrote: On Thursday 22 October 2009 5:17:07 pm Daniel Eischen wrote: On Thu, 22 Oct 2009, Andrew Gallatin wrote: Daniel Eischen wrote: On Thu, 22 Oct 2009, Andrew Gallatin wrote: Hi, We're designing some software which has to lock ac

Re: semaphores between processes

2009-10-23 Thread Daniel Eischen
On Fri, 23 Oct 2009, John Baldwin wrote: On Thursday 22 October 2009 5:17:07 pm Daniel Eischen wrote: On Thu, 22 Oct 2009, Andrew Gallatin wrote: Daniel Eischen wrote: On Thu, 22 Oct 2009, Andrew Gallatin wrote: Hi, We're designing some software which has to lock access to shared memory p

Re: help needed to fix contrib/ee crash/exit when receiving SIGWINCH

2009-10-23 Thread pluknet
2009/10/23 Alexander Best : > pluknet schrieb am 2009-10-23: >> 2009/10/23 Alexander Best : >> > Gary Jennejohn schrieb am 2009-10-23: >> >> On Fri, 23 Oct 2009 12:58:43 +0400 >> >> pluknet wrote: > >> >> > 2009/10/23 Antony Mawer : >> >> > > On Fri, Oct 23, 2009 at 1:35 PM, Alexander Best >> >> >

Re: semaphores between processes

2009-10-23 Thread John Baldwin
On Thursday 22 October 2009 5:17:07 pm Daniel Eischen wrote: > On Thu, 22 Oct 2009, Andrew Gallatin wrote: > > > Daniel Eischen wrote: > >> On Thu, 22 Oct 2009, Andrew Gallatin wrote: > >> > >>> Hi, > >>> > >>> We're designing some software which has to lock access to > >>> shared memory pages b

Re: help needed to fix contrib/ee crash/exit when receiving SIGWINCH

2009-10-23 Thread Alexander Best
pluknet schrieb am 2009-10-23: > 2009/10/23 Alexander Best : > > Gary Jennejohn schrieb am 2009-10-23: > >> On Fri, 23 Oct 2009 12:58:43 +0400 > >> pluknet wrote: > >> > 2009/10/23 Antony Mawer : > >> > > On Fri, Oct 23, 2009 at 1:35 PM, Alexander Best > >> > > wrote: > >> > >> hi everyone, > >

Re: help needed to fix contrib/ee crash/exit when receiving SIGWINCH

2009-10-23 Thread pluknet
2009/10/23 Alexander Best : > Gary Jennejohn schrieb am 2009-10-23: >> On Fri, 23 Oct 2009 12:58:43 +0400 >> pluknet wrote: > >> > 2009/10/23 Antony Mawer : >> > > On Fri, Oct 23, 2009 at 1:35 PM, Alexander Best >> > > wrote: >> > >> hi everyone, > >> > >> together with hugh mahon (the author of

Re: help needed to fix contrib/ee crash/exit when receiving SIGWINCH

2009-10-23 Thread Alexander Best
Gary Jennejohn schrieb am 2009-10-23: > On Fri, 23 Oct 2009 12:58:43 +0400 > pluknet wrote: > > 2009/10/23 Antony Mawer : > > > On Fri, Oct 23, 2009 at 1:35 PM, Alexander Best > > > wrote: > > >> hi everyone, > > >> together with hugh mahon (the author of ee) i've been trying to > > >> fix a na

Re: help needed to fix contrib/ee crash/exit when receiving SIGWINCH

2009-10-23 Thread Alexander Best
Gary Jennejohn schrieb am 2009-10-23: > On Fri, 23 Oct 2009 12:58:43 +0400 > pluknet wrote: > > 2009/10/23 Antony Mawer : > > > On Fri, Oct 23, 2009 at 1:35 PM, Alexander Best > > > wrote: > > >> hi everyone, > > >> together with hugh mahon (the author of ee) i've been trying to > > >> fix a na

Re: help needed to fix contrib/ee crash/exit when receiving SIGWINCH

2009-10-23 Thread Dag-Erling Smørgrav
[cc: ed for ee and rafan for ncurses] Alexander Best writes: > i'm not so sure this is entirely ee's fault. It is *partly* ee's fault. src/usr.bin/ee/ee.c in 7: in = wgetch(text_win); if (in == -1) continue; src/contrib/ee/ee.c in 8:

Re: help needed to fix contrib/ee crash/exit when receiving SIGWINCH

2009-10-23 Thread Gary Jennejohn
On Fri, 23 Oct 2009 13:50:24 +0200 Gary Jennejohn wrote: > On Fri, 23 Oct 2009 12:58:43 +0400 > pluknet wrote: > > > 2009/10/23 Antony Mawer : > > > On Fri, Oct 23, 2009 at 1:35 PM, Alexander Best > > > wrote: > > >> hi everyone, > > >> > > >> together with hugh mahon (the author of ee) i've b

Re: help needed to fix contrib/ee crash/exit when receiving SIGWINCH

2009-10-23 Thread Gary Jennejohn
On Fri, 23 Oct 2009 12:58:43 +0400 pluknet wrote: > 2009/10/23 Antony Mawer : > > On Fri, Oct 23, 2009 at 1:35 PM, Alexander Best > > wrote: > >> hi everyone, > >> > >> together with hugh mahon (the author of ee) i've been trying to fix a nasty > >> bug in ee. for some reason ee exits (not crash

Re: help needed to fix contrib/ee crash/exit when receiving SIGWINCH

2009-10-23 Thread Paul B Mahol
On 10/23/09, Alexander Best wrote: > Nate Eldredge schrieb am 2009-10-23: >> On Fri, 23 Oct 2009, Antony Mawer wrote: > >> >On Fri, Oct 23, 2009 at 1:35 PM, Alexander Best >> > wrote: >> >>hi everyone, > >> >>together with hugh mahon (the author of ee) i've been trying to >> >>fix a nasty >> >>bug

Re: help needed to fix contrib/ee crash/exit when receiving SIGWINCH

2009-10-23 Thread Alexander Best
pluknet schrieb am 2009-10-23: > 2009/10/23 Antony Mawer : > > On Fri, Oct 23, 2009 at 1:35 PM, Alexander Best > > wrote: > >> hi everyone, > >> together with hugh mahon (the author of ee) i've been trying to > >> fix a nasty > >> bug in ee. for some reason ee exits (not crashes) and leaves the >

Re: help needed to fix contrib/ee crash/exit when receiving SIGWINCH

2009-10-23 Thread Alexander Best
Nate Eldredge schrieb am 2009-10-23: > On Fri, 23 Oct 2009, Antony Mawer wrote: > >On Fri, Oct 23, 2009 at 1:35 PM, Alexander Best > > wrote: > >>hi everyone, > >>together with hugh mahon (the author of ee) i've been trying to > >>fix a nasty > >>bug in ee. for some reason ee exits (not crashes)

Re: help needed to fix contrib/ee crash/exit when receiving SIGWINCH

2009-10-23 Thread pluknet
2009/10/23 Antony Mawer : > On Fri, Oct 23, 2009 at 1:35 PM, Alexander Best > wrote: >> hi everyone, >> >> together with hugh mahon (the author of ee) i've been trying to fix a nasty >> bug in ee. for some reason ee exits (not crashes) and leaves the console >> corrupted when receiving SIGWINCH (`