[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Savannah-hackers] lsh-1.2.1 installed on subversions
From: |
loic |
Subject: |
[Savannah-hackers] lsh-1.2.1 installed on subversions |
Date: |
Tue, 1 May 2001 13:49:45 +0200 |
Hi,
I was able to get lsh-1.2.1 up and running. Thanks to your patch
(s/self/options/ did the trick). I documented all this at
http://savannah.gnu.org/savannah.html#lsh%20and%20ssh
Thanks for your help and thanks for providing lsh.
Niels Möller writes:
> address@hidden writes:
>
> > It would help me if you could send me a diff showing the
> > inversion of daemon + background process launch you mentionned. I'm a bit
> > lost in the code and it would allow me to go faster.
>
> Sure, see the (untested) patch below.
>
> Actually, the patch doesn't change anything the scheme preprocessor
> cares about, so it should work to apply the patch and just touch
> lshd.x to make it up-to-date.
>
> Regerds,
> /Niels
>
> === cd /home/nisse/hack/stable-lsh/src/
> === cvs -d /lysator/cvsroot/ diff -u -a lshd.c
>
> Index: lshd.c
> ===================================================================
> RCS file: /lysator/cvsroot//nisse/lsh/src/lshd.c,v
> retrieving revision 1.112.2.1
> diff -u -a -r1.112.2.1 lshd.c
> --- lshd.c 2001/04/17 21:42:16 1.112.2.1
> +++ lshd.c 2001/04/25 18:32:47
> @@ -480,9 +480,6 @@
> else
> argp_error(state, "All user authentication methods disabled.");
>
> - /* Start background poll */
> - RANDOM_POLL_BACKGROUND(self->random->poller);
> -
> break;
> }
> case 'p':
> @@ -751,6 +748,13 @@
> return EXIT_FAILURE;
> }
>
> + /* NOTE: We have to do this *after* forking into the background,
> + * because otherwise we won't be able to waitpid() on the background
> + * process. */
> +
> + /* Start background poll */
> + RANDOM_POLL_BACKGROUND(self->random->poller);
> +
> {
> /* Commands to be invoked on the connection */
> struct object_list *connection_hooks;
--
Loic Dachary http://www.dachary.org/ address@hidden
24 av Secretan http://www.senga.org/ address@hidden
75019 Paris Tel: 33 1 42 45 09 16 address@hidden
GPG Public Key: http://www.dachary.org/loic/gpg.txt
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Savannah-hackers] lsh-1.2.1 installed on subversions,
loic <=