Added pipe communication in mapserver.c, the child writes the msgvalidity to a pipe, parent reads it and uses it for message sending.