LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 10-15-2014, 11:51 AM   #1
zvivered
Member
 
Registered: Sep 2007
Posts: 297

Rep: Reputation: 23
Stop process simultaneously


Hello,

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,
Zvika
 
Old 10-15-2014, 12:33 PM   #2
linosaurusroot
Member
 
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.
http://en.wikipedia.org/wiki/Process_group

I haven't tried ptrace() using a pid that means a process group.
http://linux.die.net/man/2/ptrace

Or there is other advice at http://www.delorie.com/gnu/docs/gdb/gdb_26.html
 
Old 10-15-2014, 06:54 PM   #3
zvivered
Member
 
Registered: Sep 2007
Posts: 297

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

Hello,

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,
Zvika

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


Reply


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 06:33 PM
How to know which process can be stop jojojo Linux - Newbie 3 06-16-2006 12:40 AM
process stop and resume. bruse Linux - Newbie 2 01-24-2006 08:14 AM
how to stop a process? frostmagic Programming 14 12-05-2003 12:02 PM
rc.d with K to stop the process... psyklops Linux - General 1 10-18-2003 02:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:36 PM.

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