On 8/13/07, Vineet Goel <[EMAIL PROTECTED]> wrote:
>
> hi,
>
>  if one of thread call exit (or abort), what will be the effect on other
> running thread in that application?

i guess you meant SIGABRT
SIGABRT can be caught, but the next thing that happens after the
signal handler returns is a call to the abort() function. you are
allowed to catch this signal to preform any cleanup you need. abort()
does not return and terminates the process (which means all it's
threads are terminated too)
i guess it gracefully exits if your signal handler does the necesary
cleaning otherwise it doesnt :) in any case "gracefully" depends
entirely on interpretation
read abort(3C) man page
and for some more reading material you might want APUE from stevens,
section 10.17

>
>  My application is having 100s of running thread. One the thread call
> abort/exit system call and application dies. Now my query is, when one
> thread abort, it sent abort signal (SIG_ABORT, 6) to all of running thread.
> Then how running thread will take that signal? I mean immediately quit or
> gracefully exit.
>
>  Hope I am clear.
>
>  TIA
>  Vineet
>
nacho
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to