Solved

atexit

Posted on 2002-03-17
4
188 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
  • 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

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…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
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 get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now