Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 204
  • Last Modified:

atexit

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
fancyqin
Asked:
fancyqin
  • 2
  • 2
1 Solution
 
newmangCommented:
It doesn't for a Ctrl+C, it does for Ctr-D.

0
 
fancyqinAuthor Commented:
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
 
newmangCommented:
Yes. But not when Ctrl+C is pressed.
0
 
fancyqinAuthor Commented:
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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now