From: Shankar Unni <shankarunni@netscape.net>
To: linux-kernel@vger.kernel.org
Subject: Re: at_fork & at_exit
Date: Tue, 21 Dec 2004 12:59:05 -0800 [thread overview]
Message-ID: <cqa2qq$rma$1@sea.gmane.org> (raw)
In-Reply-To: <41C835C7.2010203@gmail.com>
Arun C Murthy wrote:
> Im looking for linux equivalent of the FreeBSD calls:
> 1. at_fork
> 2. at_exit
There is an ANSI C equivalent of at_exit: it's called atexit(). Use that
instead of OS-specific hacks like at_exit.
No direct analog to at_fork() that I know of, but there's a "sort of"
equivalent thing you can use: pthread_atfork(). No reason why you can't
use it, even if your program is not multi-threaded..
prev parent reply other threads:[~2004-12-21 21:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-21 14:40 at_fork & at_exit Arun C Murthy
2004-12-21 14:46 ` Jan Engelhardt
2004-12-24 20:05 ` Arun C Murthy
2004-12-21 20:57 ` Rik van Riel
2004-12-21 20:59 ` Shankar Unni [this message]
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='cqa2qq$rma$1@sea.gmane.org' \
--to=shankarunni@netscape.net \
--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