• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 205
  • 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

2018 Annual Membership Survey

Here at Experts Exchange, we strive to give members the best experience. Help us improve the site by taking this survey today! (Bonus: Be entered to win a great tech prize for participating!)

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