if exit(0) of shared library exits program too?

857 Views Asked by At

I have one program that uses shared library. In shared library, error case they have written exit(0). So if that function is called then exit(0) will be executed of shared library.

Will it exit my program too ?

1

There are 1 best solutions below

0
On BEST ANSWER

Yes it terminates the calling process immediately.SIGCHLD signal will be send to process which inherited by process 1 or init.