All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steven Scholz <steven.scholz@imc-berlin.de>
To: Wojciech Kromer <krom@dgt-lab.com.pl>,
	"Linuxppc-Embedded (E-mail)"
	<linuxppc-embedded@lists.linuxppc.org>
Subject: Re: execve inside irq?
Date: Fri, 25 Apr 2003 12:43:23 +0200	[thread overview]
Message-ID: <3EA9114B.5010305@imc-berlin.de> (raw)
In-Reply-To: 3EA90FF8.2000701@imc-berlin.de


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/

  reply	other threads:[~2003-04-25 10:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-25 10:30 execve inside irq? Wojciech Kromer
2003-04-25 10:37 ` Steven Scholz
2003-04-25 10:43   ` Steven Scholz [this message]
2003-04-25 11:18   ` Wojciech Kromer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3EA9114B.5010305@imc-berlin.de \
    --to=steven.scholz@imc-berlin.de \
    --cc=krom@dgt-lab.com.pl \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.