Don Dailey wrote: > When you get a quit command, you send something over the pipe but then > you immediately shutdown the program (and the pipe) so I'm not sure what > happens if the controller doesn't read it before it shuts down. This > is probably a bug if it isn't handled properly. Does the process wait > until the pipe is read before shutting down? It seems like I remember > reading that you are supposed to try to read from the pipe before > shutting it down.
If this is a Unix pipe, the kernel will buffer what you write, so you can safely shut down before it's been read. If you try to write more than the kernel is willing to buffer, the write call won't return until enough has been read. -M- _______________________________________________ computer-go mailing list [email protected] http://www.computer-go.org/mailman/listinfo/computer-go/
