Date: Mon, 3 Dec 2001 14:05:35 -0000 From: "Tariq Rashid" <tariq@inty.net> To: <freebsd-security@freebsd.org> Subject: isakmpd cpu hog: fix? Message-ID: <MPENKFCCIIDAJKJJOLBHKEFCCDAA.tariq@inty.net>
next in thread | raw e-mail | index | archive | help
for the FreeBSD port of idakmpd there has been a long standing bug - it soaked up all CPU .... open fifo in RDWR not RDONLY mode... ui.c: /* No need to know about errors. */ unlink (ui_fifo); if (mkfifo (ui_fifo, 0600) == -1) log_fatal ("ui_init: mkfifo (\"%s\", 0600) failed", ui_fifo); /* XXX Is O_RDWR needed on some OSes? Photurisd seems to imply that. */ // TR ... FIFO opened as O_RDWR and not O_RDONLY ... ? ui_socket = open (ui_fifo, O_RDWR | O_NONBLOCK, 0); // ui_socket = open (ui_fifo, O_RDONLY | O_NONBLOCK, 0); if (ui_socket == -1) log_fatal ("ui_init: open (\"%s\", O_RDONLY | O_NONBLOCK, 0) failed", ui_fifo); } we think .... ? seems to work now.... tariq ----------------------------------------------- Information in this electronic mail message is confidential and may be legally privileged. It is intended solely for the addressee. Access to this message by anyone else is unauthorised. If you are not the intended recipient any use, disclosure, copying or distribution of this message is prohibited and may be unlawful. When addressed to our customers, any information contained in this message is subject to Intelligent Network Technology Ltd Terms & Conditions. ----------------------------------------------- Take part in the intY 2001 Email Usage survey online at http://www.inty.net/email/survey.html ----------------------------------------------- intY has automatically scanned this email using Sophos Anti-Virus (www.inty.net) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?MPENKFCCIIDAJKJJOLBHKEFCCDAA.tariq>