* execve inside irq?
@ 2003-04-25 10:30 Wojciech Kromer
2003-04-25 10:37 ` Steven Scholz
0 siblings, 1 reply; 4+ messages in thread
From: Wojciech Kromer @ 2003-04-25 10:30 UTC (permalink / raw)
To: Linuxppc-Embedded (E-mail)
anyone knows ho to call execve inside irq
i just want to execve("/sbin/poweroff"....) in case of pressing power
button on my board
--
* * * * * * * * * * * *
* per pedes ad astra! *
* * * * * * * * * * * * mailto:krom@dgt-lab.com.pl
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: execve inside irq?
2003-04-25 10:30 execve inside irq? Wojciech Kromer
@ 2003-04-25 10:37 ` Steven Scholz
2003-04-25 10:43 ` Steven Scholz
2003-04-25 11:18 ` Wojciech Kromer
0 siblings, 2 replies; 4+ messages in thread
From: Steven Scholz @ 2003-04-25 10:37 UTC (permalink / raw)
To: Wojciech Kromer; +Cc: Linuxppc-Embedded (E-mail)
Wojciech Kromer schrieb:
>
> anyone knows ho to call execve inside irq
>
> i just want to execve("/sbin/poweroff"....) in case of pressing power
> button on my board
Since I did not find a better solution yet I start a new kernel thread
that takes care of poweroff when getting the power button interrupt.
In this new thread I then send a SIGUSR1 to init, but you could
probably call "execve("/sbin/poweroff"....) " as well.
Steven
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: execve inside irq?
2003-04-25 10:37 ` Steven Scholz
@ 2003-04-25 10:43 ` Steven Scholz
2003-04-25 11:18 ` Wojciech Kromer
1 sibling, 0 replies; 4+ messages in thread
From: Steven Scholz @ 2003-04-25 10:43 UTC (permalink / raw)
To: Wojciech Kromer, Linuxppc-Embedded (E-mail)
I wrote:
>
> Wojciech Kromer schrieb:
>
>>
>> anyone knows ho to call execve inside irq
>>
>> i just want to execve("/sbin/poweroff"....) in case of pressing power
>> button on my board
>
>
> Since I did not find a better solution yet I start a new kernel thread
> that takes care of poweroff when getting the power button interrupt.
> In this new thread I then send a SIGUSR1 to init, but you could
> probably call "execve("/sbin/poweroff"....) " as well.
Of course I meant SIGUSR2. (Busybox') init powers down then...
Steven
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: execve inside irq?
2003-04-25 10:37 ` Steven Scholz
2003-04-25 10:43 ` Steven Scholz
@ 2003-04-25 11:18 ` Wojciech Kromer
1 sibling, 0 replies; 4+ messages in thread
From: Wojciech Kromer @ 2003-04-25 11:18 UTC (permalink / raw)
To: Linuxppc-Embedded (E-mail)
>
> Since I did not find a better solution yet I start a new kernel thread
> that takes care of poweroff when getting the power button interrupt.
> In this new thread I then send a SIGUSR1 to init, but you could
> probably call "execve("/sbin/poweroff"....) " as well.
>
> Steven
>
>
thx, this method works fine
--
* * * * * * * * * * * *
* per pedes ad astra! *
* * * * * * * * * * * * mailto:krom@dgt-lab.com.pl
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-04-25 11:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-25 10:30 execve inside irq? Wojciech Kromer
2003-04-25 10:37 ` Steven Scholz
2003-04-25 10:43 ` Steven Scholz
2003-04-25 11:18 ` Wojciech Kromer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).