LinuxQuestions.org
Visit the LQ Articles and Editorials section
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
 
LinkBack Search this Thread
Old 12-27-2005, 10: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 10: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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
difference between exit 1 and exit kushalkoolwal Programming 6 10-20-2005 03:56 PM
return value neerajchaudhari Linux - Newbie 1 08-29-2005 01:42 AM
return 0 or return(0) in C? servnov Programming 5 01-08-2005 04:39 PM
return linuxanswer Programming 4 10-25-2003 11:31 PM
Java: System.exit(0) vs. System.exit(1) mikeshn Programming 2 01-01-2003 08:20 PM


All times are GMT -5. The time now is 04:51 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration