[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug#109519: pfinet crashs in tcp_close() because of missing schedule_tim
From: |
Marcus Brinkmann |
Subject: |
Bug#109519: pfinet crashs in tcp_close() because of missing schedule_timeout() |
Date: |
Tue, 21 Aug 2001 20:48:21 +0200 |
User-agent: |
Mutt/1.3.20i |
On Tue, Aug 21, 2001 at 06:20:37PM +0200, Moritz Schulte wrote:
> Marcus suggested to undefine SO_LINGER. That seems to be the right
> solution, currently.
That was a black out. I don't actually think we should do that. We should
rather implement it. Sorry for the confusion.
> Otherwise we would need to implement a
> schedule_timeout() function. Linux' schedule_timeout() depends on a
> lot of other functions, it can't be simply plugged into pfinet.
The one you send me seemed to only on the schedule and timer
interface. We have both, probably it didn't work to paste it into the
header file, but you need to put it into a seperate file and include the
correct glue headers.
Here is the main portion of the schedule timeout function:
expire = timeout + jiffies;
init_timer(&timer);
timer.expires = expire;
timer.data = (unsigned long) current;
timer.function = process_timeout;
add_timer(&timer);
schedule();
del_timer_sync(&timer);
timeout = expire - jiffies;
Look into pfinet/timer-emul.c for the timer functions, and
glue-include/linux/sched.h for schedule().
Thanks,
Marcus
--
`Rhubarb is no Egyptian god.' Debian http://www.debian.org brinkmd@debian.org
Marcus Brinkmann GNU http://www.gnu.org marcus@gnu.org
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de