--- rxvt-unicode/src/fdpass.C 2006/01/22 00:53:56 1.7 +++ rxvt-unicode/src/fdpass.C 2006/01/22 16:36:40 1.9 @@ -1,4 +1,7 @@ -/*--------------------------------*-C-*---------------------------------* +// This file is part of libptytty. Do not make local modifications. +// http://software.schmorp.de/pkg/libptytty + +/*----------------------------------------------------------------------* * File: fdpass.C *----------------------------------------------------------------------* * @@ -32,7 +35,7 @@ # define CMSG_LEN(len) (sizeof (cmsghdr) + len) #endif -int +bool ptytty::send_fd (int socket, int fd) { msghdr msg; @@ -59,7 +62,7 @@ msg.msg_controllen = cmsg->cmsg_len; - return sendmsg (socket, &msg, 0); + return sendmsg (socket, &msg, 0) >= 0; } int