/*
- * $Id: ipc.cc,v 1.19 2000/05/02 20:12:09 hno Exp $
+ * $Id: ipc.cc,v 1.20 2000/05/02 20:21:04 hno Exp $
*
* DEBUG: section 54 Interprocess Communication
* AUTHOR: Duane Wessels
return ipcCloseAllFD(prfd, pwfd, crfd, cwfd);
}
if (type == IPC_UDP_SOCKET) {
- x = send(cwfd, hello_string, strlen(hello_string), 0);
+ x = send(cwfd, hello_string, strlen(hello_string) + 1, 0);
if (x < 0) {
debug(50, 0) ("sendto FD %d: %s\n", cwfd, xstrerror());
debug(50, 0) ("ipcCreate: CHILD: hello write test failed\n");
_exit(1);
}
} else {
- if (write(cwfd, hello_string, strlen(hello_string)) < 0) {
+ if (write(cwfd, hello_string, strlen(hello_string) + 1) < 0) {
debug(50, 0) ("write FD %d: %s\n", cwfd, xstrerror());
debug(50, 0) ("ipcCreate: CHILD: hello write test failed\n");
_exit(1);