Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2001:
[Freeciv-Dev] Re: Ctrl-D in server (PR#936)
Home

[Freeciv-Dev] Re: Ctrl-D in server (PR#936)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx (Freeciv developers)
Subject: [Freeciv-Dev] Re: Ctrl-D in server (PR#936)
From: Reinier Post <rp@xxxxxxxxxx>
Date: Wed, 5 Sep 2001 09:58:35 +0200

On Wed, Sep 05, 2001 at 12:06:07AM +0100, Vasco Alexandre Da Silva Costa wrote:

> I made a patch once that made it work "the UNIX way", but we run civserver
> in civserver.freeciv.org inside shell scripts kind of like this:
> 
> civserver < /dev/null > logfile 2>&1
> 
> If civserver works "the UNIX way" it will simply exit. If we don't ignore
> stdin the server can hangup. So closing stdin is a good option.

One option is to exit if stdin was open previously.

-- 
Reinier


[Prev in Thread] Current Thread [Next in Thread]