Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-15-2014, 10:51 AM   #1
Registered: Sep 2007
Posts: 278

Rep: Reputation: 23
Stop process simultaneously


My application contains 8 processes.
Using gdb I'm able to stop a specified process and debug it.

But because other processes continue running, the debugging does not give a clear picture of what happens without debugging.

Is it possible to stop all processes (in my application) simultaneously ?

Thank you in advance,
Old 10-15-2014, 11:33 AM   #2
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
Blog Entries: 2

Rep: Reputation: 244Reputation: 244Reputation: 244
If they are in a process group they could all be signalled with e.g. SIGTSTP at the same time. Then debug and SIGCONT the one you are interested in.

I haven't tried ptrace() using a pid that means a process group.

Or there is other advice at
Old 10-15-2014, 05:54 PM   #3
Registered: Sep 2007
Posts: 278

Original Poster
Rep: Reputation: 23
Setting group id with setgid


I manually launched 2 processes under the same group id.
Then using gdb I attached to one of the processes.

This stopped only one process.
I expected the other one to stop also.

Can you help ?

Thank you in advance,

Last edited by zvivered; 10-16-2014 at 01:12 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to stop a process immediately puntino Linux - Newbie 2 08-09-2012 05:33 PM
How to know which process can be stop jojojo Linux - Newbie 3 06-15-2006 11:40 PM
process stop and resume. bruse Linux - Newbie 2 01-24-2006 07:14 AM
how to stop a process? frostmagic Programming 14 12-05-2003 11:02 AM
rc.d with K to stop the process... psyklops Linux - General 1 10-18-2003 01:14 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:31 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration