delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/12/05/06:39:52

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <3C0E0751.A26D86F7@adm.unipi.it>
Date: Wed, 05 Dec 2001 12:38:57 +0100
From: Enrico Bernardini <enrico AT adm DOT Unipi DOT IT>
X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.19-6.2.7 i686)
X-Accept-Language: it, en
MIME-Version: 1.0
To: cygwin-patches AT cygwin DOT com
CC: cygwin AT cygwin DOT com
Subject: Re: inetd 1.3.2-15 not respawn udp connections
References: <3C0CB6A4 DOT 5553C122 AT adm DOT unipi DOT it>

--------------39BFB73886053FEA645B1C43
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi,
I found the "bug":
the problem was the "wait" option.
in inetd.c se_wait is definde short but it take the pid (int) values.
So (sep->se_wait == pid) never matchs and the server never restarts.

Here is the very small patch to inetd.c (short => int)

Regards
Enrico

Enrico Bernardini wrote:
> 
> Hi all,
> I'm porting amanda2.4.2p2 client on cygnus (win98se cygwin1.dll 1.3.6).
> Inetd starts amandad first time, amandad completes the job and exits.
> When the server side recall amandad to continue working, inetd does not
> restart amandad.
> 
> You can see the same behaviour if you start and close a talk session:
> 
> 1) talk foo AT bar
> inetd -d says
> 
> someone wants ntalk
> + Closing from 7
> 234265 execl /usr/sbin/in.talkd
> 
> 2) talk from foo AT bar and exit
> 3) wait for timeout:
> inetd -d says
> 
> 234265 reaped, status 0
> 
> 4) try to "talk foo AT bar"
> and you will see nothing from inetd (I'll wait for another execl...)
> 
> The tcp connections work correctly.
> 
> inetd.conf:
> ntalk   dgram   udp     wait    root  /usr/sbin/in.talkd      in.talkd
> amanda  dgram   udp     wait    enrico  /usr/local/libexec/amandad
> amandad
> 
> Thanks in advance
> Enrico
--------------39BFB73886053FEA645B1C43
Content-Type: application/octet-stream;
 name="inetd.c-patch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="inetd.c-patch"

LS0tIGluZXRkLmMub3JpZwlXZWQgRGVjICA1IDExOjA0OjMyIDIwMDEKKysrIGluZXRkLmMJ
V2VkIERlYyAgNSAxMTowNjozNCAyMDAxCkBAIC0xNTYsNyArMTU2LDcgQEAgc3RydWN0CXNl
cnZ0YWIgewogCWNoYXIJKnNlX3NlcnZpY2U7CQkvKiBuYW1lIG9mIHNlcnZpY2UgKi8KIAlp
bnQJc2Vfc29ja3R5cGU7CQkvKiB0eXBlIG9mIHNvY2tldCB0byB1c2UgKi8KIAljaGFyCSpz
ZV9wcm90bzsJCS8qIHByb3RvY29sIHVzZWQgKi8KLQlzaG9ydAlzZV93YWl0OwkJLyogc2lu
Z2xlIHRocmVhZGVkIHNlcnZlciAqLworCWludAlzZV93YWl0OwkJLyogc2luZ2xlIHRocmVh
ZGVkIHNlcnZlciAqLwogCXNob3J0CXNlX2NoZWNrZWQ7CQkvKiBsb29rZWQgYXQgZHVyaW5n
IG1lcmdlICovCiAJY2hhcgkqc2VfdXNlcjsJCS8qIHVzZXIgbmFtZSB0byBydW4gYXMgKi8K
IAlzdHJ1Y3QJYmlsdGluICpzZV9iaTsJCS8qIGlmIGJ1aWx0LWluLCBkZXNjcmlwdGlvbiAq
Lwo=

--------------39BFB73886053FEA645B1C43
Content-Type: text/plain; charset=us-ascii

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/
--------------39BFB73886053FEA645B1C43--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019