?
Solved

atexit

Posted on 2002-03-17
4
Medium Priority
?
203 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 468 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
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 find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

718 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