From: Chris Friesen <cfriesen@nortelnetworks.com>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: where to put kernel code to run on exec?
Date: Fri, 07 Jan 2005 09:50:58 -0600 [thread overview]
Message-ID: <41DEAFE2.1030001@nortelnetworks.com> (raw)
I've added a field to the task struct to keep track of whether or not
the process wants to be notified of various events. On exec() I'd like
to clear this field.
I'm having problems finding a nice clean place to put the code to clear
it. The obvious choice would be in the last bit of the success path in
do_execve(), but there's nothing similar there already, so I'm probably
missing something.
Is there some standard place to put code to run on a successful call to
exec()?
Chris
Chris
next reply other threads:[~2005-01-07 15:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-07 15:50 Chris Friesen [this message]
2005-01-08 1:49 ` where to put kernel code to run on exec? David Meybohm
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=41DEAFE2.1030001@nortelnetworks.com \
--to=cfriesen@nortelnetworks.com \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox