[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-arm-kernel
Subject: Re: for_each_task in 2.6?
From: Daniel Jacobowitz <dan () debian ! org>
Date: 2005-06-29 16:34:35
Message-ID: 20050629163435.GA6704 () nevyn ! them ! org
[Download RAW message or body]
On Wed, Jun 29, 2005 at 02:50:00PM +0200, Steven Scholz wrote:
> Ladis,
>
> >On Wed, Jun 29, 2005 at 01:57:54PM +0200, Steven Scholz wrote:
> >
> >>in 2.4 I used
> >> force_sig(SIGUSR2, (&init_task)->next_task);
> >>to shutdown the system.
> >
> >
> >kill_proc(1, SIGINT, 1);
>
> I know. But I didn't want to hard code the pid 1!
Why not? This is more reliable than grubbing around in init_task.
Init will always be PID 1.
--
Daniel Jacobowitz
CodeSourcery, LLC
-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel
FAQ: http://www.arm.linux.org.uk/mailinglists/faq.php
Etiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic