tags:

views:

31

answers:

1

Hi,

I have written some simple inetd-Service in C. It reads a string from the user, compares it to another string and then terminates. At least, this is what I want it to do. After reaching the return(0);-statement in main(), it simply restarts and presents me a new prompt.

Is there any way to tell inetd that it should terminate the connection to the client after the main-function of the service returns?

My inted.conf-entry for my service: pass stream tcp nowait root /usr/sbin/tcpd /home/jth/pass

A: 

Urgh, forget it, my service contained an infinite loop, works now as expected.

jth