LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 10:51 AM   #1
zvivered
Member
 
Registered: Sep 2007
Posts: 294

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, 11:33 AM   #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, 05:54 PM   #3
zvivered
Member
 
Registered: Sep 2007
Posts: 294

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 01:12 AM.
 
  


Reply



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

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

All times are GMT -5. The time now is 03:48 AM.

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