Re: [wmii] Re: dtach v. screen

From: Anselm R. Garbe <garbeam_AT_wmii.de>
Date: Tue, 6 Jun 2006 19:09:39 +0200

On Fri, Jun 02, 2006 at 02:50:26PM +0200, Uriel wrote:
> On 6/2/06, Ross Mohn <rpmohn_AT_waxandwane.org> wrote:
> >On Thu, 2006-06-01 at 13:51 -0400, Kris Maglione wrote:
> >
> >> Might I suggest, though, that you use dtach (http://dtach.sf.net/)
> >instead
>
> >From http://dtach.sf.net/:
> >dtach is a tiny program [...]
>
> dtach-0.7$ cat *.[ch]|wc
> 1145 3758 25598
> dtach-0.7$ cat *.[ch]|grep '^#if'|wc
> 28 60 615
>
> Someone changed the definition of the word 'tiny' while I was
> not looking?

Well above wc call is a bit unfair. To achieve the attach/detach
feature for processes in a portable way (at least for BSD/Linux)
you will need to use CPP heavily.. Measuring the code with
sloccount tells, that it consists of 818 SLOC, which is rather
small for the functionality it provides (though I bet it can be
done much smaller).

I think most #ifdef stuff checks for the macro BROKEN_MASTER
which could be simplified...

Regards,

-- 
 Anselm R. Garbe  ><><  www.ebrag.de  ><><  GPG key: 0D73F361
Received on Tue Jun 06 2006 - 19:09:39 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:08:10 UTC