LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-27-2005, 11:03 AM   #1
nopcoder
LQ Newbie
 
Registered: Dec 2005
Posts: 10

Rep: Reputation: 0
Question Exit with Return


Hi

I am looking for a “termination” routine that executes finalization/cleanup code, registered via atexit() and global/static object deconstructors, such as exit() except it doesn’t end the process. Instead returns to the caller (which in turn should fully exits the process) or performs an assignable callback (and then terminates).

So far I have only encountered two such functions: _cexit() for windows and _exithandle() for solaris (which I am not quite sure performs as expected). But I also seek such implementations for Linux, any ideas? “Macros Controlling Initialization Routines” in GCC might help if I could make sense of them.

Any help is appreciated.

Last edited by nopcoder; 12-27-2005 at 11:09 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
difference between exit 1 and exit kushalkoolwal Programming 6 10-20-2005 04:56 PM
return value neerajchaudhari Linux - Newbie 1 08-29-2005 02:42 AM
return 0 or return(0) in C? servnov Programming 5 01-08-2005 05:39 PM
return linuxanswer Programming 4 10-26-2003 12:31 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration