Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

exit_group(2) [sunos man page]

EXIT_GROUP(2)                                                Linux Programmer's Manual                                               EXIT_GROUP(2)

exit_group - exit all threads in a process SYNOPSIS
#include <linux/unistd.h> void exit_group(int status); DESCRIPTION
This system call is equivalent to _exit(2) except that it terminates not only the calling thread, but all threads in the calling process's thread group. RETURN VALUE
This system call does not return. VERSIONS
This call is present since Linux 2.5.35. CONFORMING TO
This call is Linux-specific. NOTES
Since glibc 2.3, this is the system call invoked when the _exit(2) wrapper function is called. SEE ALSO
exit(2) COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at Linux 2008-11-27 EXIT_GROUP(2)

Check Out this Related Man Page

_EXIT(2)						     Linux Programmer's Manual							  _EXIT(2)

_exit, _Exit - terminate the calling process SYNOPSIS
#include <unistd.h> void _exit(int status); #include <stdlib.h> void _Exit(int status); Feature Test Macro Requirements for glibc (see feature_test_macros(7)): _Exit(): _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L DESCRIPTION
The function _exit() terminates the calling process "immediately". Any open file descriptors belonging to the process are closed. Any children of the process are inherited by init(1) (or by the nearest "subreaper" process as defined through the use of the prctl(2) PR_SET_CHILD_SUBREAPER operation). The process's parent is sent a SIGCHLD signal. The value status & 0377 is returned to the parent process as the process's exit status, and can be collected using one of the wait(2) fam- ily of calls. The function _Exit() is equivalent to _exit(). RETURN VALUE
These functions do not return. CONFORMING TO
POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD. The function _Exit() was introduced by C99. NOTES
For a discussion on the effects of an exit, the transmission of exit status, zombie processes, signals sent, and so on, see exit(3). The function _exit() is like exit(3), but does not call any functions registered with atexit(3) or on_exit(3). Open stdio(3) streams are not flushed. On the other hand, _exit() does close open file descriptors, and this may cause an unknown delay, waiting for pending output to finish. If the delay is undesired, it may be useful to call functions like tcflush(3) before calling _exit(). Whether any pending I/O is canceled, and which pending I/O may be canceled upon _exit(), is implementation-dependent. C library/kernel differences In glibc up to version 2.3, the _exit() wrapper function invoked the kernel system call of the same name. Since glibc 2.3, the wrapper function invokes exit_group(2), in order to terminate all of the threads in a process. SEE ALSO
execve(2), exit_group(2), fork(2), kill(2), wait(2), wait4(2), waitpid(2), atexit(3), exit(3), on_exit(3), termios(3) COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at Linux 2017-05-03 _EXIT(2)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

CorelDRAW for Linux

Hi everyone... I'm looking for (CorelDRAW for Linux) so that I work only in Linux. Could anyone help me to find a way to have it! (2 Replies)
Discussion started by: shrinux
2 Replies

2. UNIX for Dummies Questions & Answers

Linux advantages?

Hello to help me with my studying of unix/linux outside of work I was thinking of installing Linux at home aswell as using Windows XP. Im pretty new to Linux and Unix, could someone tell me the possible benifits or even negatives of running Linux at home as an opperating system as opposed to... (2 Replies)
Discussion started by: Loaded Gun
2 Replies

3. Linux

How to stop linux man pages from clearing on exit?

Whenever I quit out of reading a man page, it clears the screen. I do not like this behavior, as I'd like to keep part of the man page on the screen while I type out a command. How do I stop this behavior? (6 Replies)
Discussion started by: akbar
6 Replies

4. UNIX for Dummies Questions & Answers

Books on Linux Prog..

Hi everybody, Can anyone suggest me some good books on Linux Prog.. I know richard stevens is always there.. But any specific books on Linux Porgramming and Networking in Linux.. Wud be of great help if anybody replies.. (4 Replies)
Discussion started by: srikumar_cs
4 Replies

5. Linux

where to download Linux 2.6.9-48.ELsmp

Hi, I have a system that I need to update from Linux 2.6.9-5.ELsmp to Linux 2.6.9-48.ELsmp . can someone please point me to a link to be able to do this? thanks in advance, ~jv (2 Replies)
Discussion started by: jvmagic
2 Replies

6. UNIX for Advanced & Expert Users

User defined stacks for threads using glibc-2.3.5

Hi, I am currently working with threads using linux 2.6.11 and glibc 2.3.5 on x86. When i am trying to create thread with user defined stacks glibc gives segmentation fault. I have written a wrapper to pthread_create () and generated shared object for the same. When i am trying to create any... (6 Replies)
Discussion started by: mysterious
6 Replies

7. Shell Programming and Scripting

How to know which Linux Distribution i am using ?

Hi, I m working on many Linux servers in my project. But i am unable to know which Linux Distribution i am using Like whether i am using SUSE or REDHAT or MONDRAKE. I tried with "uname" command. But it does not help me. Please provide me the command if u know. Regards, Basavaraja KC (5 Replies)
Discussion started by: BasavarajaKC
5 Replies

8. UNIX for Advanced & Expert Users

how to identify running threads using commands

Dear All, I am developing one project using QT Designer 3.3.5. In my project contain 27-pthreads and 5-RT Task. how to i know how many threads are currently running in my application using linux command. I was try ps -ef , but it doesn't show the threads. kindly help me with is regards. (3 Replies)
Discussion started by: rajamohan
3 Replies

9. UNIX for Dummies Questions & Answers

How to find the latest file on Unix or Linux

Please help me out how to identify the latest file in one directory by looking at file's timestamp or datestamp. You can say using system command. Thanks (10 Replies)
Discussion started by: duke0001
10 Replies

10. Linux

Gaining access to Linux Mint files

I have been experimenting with Linux and the latest one is Mint. After a few weeks it has become like some of the others I have tried, gone into silly mode. In other words the Linux bugs have defeted me. Yeh, I have no idea what I am doing to a point but I like to see how things tick and try... (4 Replies)
Discussion started by: Tony_photoplus
4 Replies

11. Linux

How to implement a system call in linux?

I encountered a variety of difficulties when implementing a system call as simple as HelloWorld example in Linux so far. Firstly, according to the book "Linux Kernel Development Second Edition", I tried to implement a syscall in 2.6.31 but no way absolutely because 2.6.10 has a very different way... (5 Replies)
Discussion started by: sunnyhay
5 Replies

12. Linux

Starting Linux for a Programmer

Hi all I am application Programmer. In my college(2 yrs back) i have learnt Unix i.e commads, shell scripts, Filesystem,I reffered to a book by "Sumitabha Das". I want to learn Linux. But i cant understand where should i start from and which book to refer to. Most of the books these days eg.... (2 Replies)
Discussion started by: FullMetal
2 Replies

13. Linux

C++ Code to Access Linux Hard Disk Sectors (with a LoopBack Virtual Hard Disk)

Hi all, I'm kind of new to programming in Linux & c/c++. I'm currently writing a FileManager using Ubuntu Linux(10.10) for Learning Purposes. I've got started on this project by creating a loopback device to be used as my virtual hard disk. After creating the loop back hard disk and mounting it... (23 Replies)
Discussion started by: shen747
23 Replies

14. Red Hat

Is here anyone hands on in Linux Bare Metal Restore..??

Hi all, I am working on Linux Bare Metal Restore in which i have few things to be discussed with a person who has his/her hands on in that process. If anyone kindly give a reply post in this thread.. :) :) Thanks Selva (3 Replies)
Discussion started by: selvarajvs
3 Replies

15. Linux

Logged in users on a Linux server are counted twice

Scenario: Log into a linux server interface as root. Inititiate an SSH session with the server using Putty and a valid user account (e.g. fakeuser). Log into TTY2 of the linux server interface using another valid user account (e.g. faketester). Issue: With these three login sessions,... (8 Replies)
Discussion started by: walterthered
8 Replies