Vanilla Netrek Server Development Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[VANILLA-L:861] Re: [VANILLA-L:860] robotII not dying
Steve Franks wrote:
> After a player kills the robot, the slot is cleared, but the robotII
> process lingers.
I've seen this on my 2.7pl7 server for a while. Eventually it will
consume all available process slots if a player is repeatedly calling
practice robots.
I don't recall a patch. None of the patches for 2.8pl0 (which is the
one after 2.7pl7) mention this problem specifically.
It just needs a wait() doesn't it? Something like a
pid = waitpid ( (pid_t) -1, &status, WNOHANG );
Ah, but where to put it? And is waitpid() portable?
--
James Cameron (cameron@stl.dec.com)
Digital Equipment Corporation (Australia) Pty. Ltd. A.C.N. 000 446 800
+
++ Vanilla-l Mailing List ++
To unsubscribe: send "unsubscribe vanilla-l" to majordomo@real-time.com
For more information: http://archives.real-time.com
References: