[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [screen-devel] Why not nonblock by default?
From: |
Juergen Weigert |
Subject: |
Re: [screen-devel] Why not nonblock by default? |
Date: |
Sat, 4 Jul 2009 17:18:28 +0200 |
User-agent: |
Mutt/1.5.19 (2009-01-05) |
On Jul 01, 09 09:26:11 -0700, Micah Cowan wrote:
> >> Juergen, I'm not following what the alarm() gives us over a nonblock
> >> with a sufficiently high value.
> >
> > You are right. I was under impression that nonblock is a boolean.
> > Actually nonblock also allows us to specify a timeout.
> > This is exactly what I was looking for!
>
> So, does this mean you approve of setting nonblock to something like,
> say, 5-10 seconds by default? The main problem I want to avoid, is that
> once a display gets locked up (perhaps it's inflooping?), there's no way
> to set that display's nonblock, since the attempt will try to contact
> the attacher again :\
Yes. Keeping the session alive has priority over keeping the scrollback
accurate. Who would argue against that? :-)
ALthough, I have raised doubt, that only setting a default timeout
may not actually help.
I'd also like to see some prominent marker in the scrollback
where output was dropped due to nonblock.
cheers,
Jw-
>
> >> Don't _both_ cases result in loss to the
> >> scrollback? If it's just the Msg() thing, we could make that the normal
> >> behavior for nonblock, too... Maybe I just don't properly understand how
> >> nonblock works?
> >
> > When I suggested alarm(), I quickly browsed the code, and saw several calls
> > to write(), that were not guarded with any timeout. So I wonder, how this
> > nonblock timeout could work in case of write syscall not returning....
>
> Yeah, good point. At some point we should check through the code to make
> sure that everything obeys the nonblock setting.
>
> - --
> Micah J. Cowan
> Programmer, musician, typesetting enthusiast, gamer.
> Maintainer of GNU Wget and GNU Teseq
> http://micah.cowan.name/
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAkpLjiIACgkQ7M8hyUobTrHMuwCghB5Doz+gbFB7VUd03jh4rLn/
> QpoAni9NE1RUsFZZh5sS80j3K6p9CicK
> =o23v
> -----END PGP SIGNATURE-----
>
--
o \ Juergen Weigert unix-software __/ _=======.=======_
<V> | address@hidden creator __/ _---|____________\/
\ | 0179/2069677 __/ (____/ /\
(/) | ____________________________/ _/ \_ vim:set sw=2 wm=8