endless loop hangs up the system

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello!

I'm really newbie in kernel programming but I fond of daring experiments. So I
have written a simple module which is runs infinite cycle in the init function.
After insmodding system hangs up (it is not a problem because i use qemu). I
also tryed to put endless loop into exit function. Then I've written a script.

#!/bin/sh

sleep 20
rmmod -f hangupmodule

I run this script every time before insmodding (or rmmodding). But nothing helps 
to remain the system into working state. So my [stupid] question is whether 
the system really hangs up when endless cycle runs inside init or exit function?

Thanks.

--
Nikolay N. Ivanov

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux