Solved

atexit

Posted on 2002-03-17
4
202 Views
Last Modified: 2013-12-27
Hello,
 
On Solaris, when <Ctrl+C> is pressed(or other exception occurs) during my AP is running, will functions associated with atexit() be executed anyway? (It is said that on windows it does so.)
Thanks.
 
sincerely,
fancyqin
0
Comment
Question by:fancyqin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 4

Expert Comment

by:newmang
ID: 6876045
It doesn't for a Ctrl+C, it does for Ctr-D.

0
 

Author Comment

by:fancyqin
ID: 6876057
Hello, newmang,

So, that is to say, when <Ctrl+D> is pressed during my AP is running, functions associated with atexit() would be executed anyway, right?

Sincerely,
fancyqin
0
 
LVL 4

Accepted Solution

by:
newmang earned 117 total points
ID: 6876059
Yes. But not when Ctrl+C is pressed.
0
 

Author Comment

by:fancyqin
ID: 6888001
Hello,

It is said that Ctrl+D do not send any signal, so that atexit() will not be called. But Mr.newmang said......

One more question: does Solaris deal with interruption same as HP-UX?

sincerely,
fancyqin
0

Featured Post

Enroll in July's Course of the Month

July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

635 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question