On Fri, Jun 02, 2006 at 02:50:26PM +0200, Uriel wrote: > On 6/2/06, Ross Mohn <[EMAIL PROTECTED]> 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 _______________________________________________ [email protected] mailing list http://wmii.de/cgi-bin/mailman/listinfo/wmii
