LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Closed Thread
  Search this Thread
Old 05-17-2002, 04:35 AM   #1
DanneSwede
LQ Newbie
 
Registered: May 2002
Distribution: SuSE7.3
Posts: 4

Rep: Reputation: 0
Unhappy HELP, I cant get getpgid to work....


Hi there,

I'm having some problems getting my processhandling program to work properly. When I use the program to start an application I just run it like a systemcommand e.g. "mozilla". This starts up the program fine. The problem is that i want to be able to kill the application from my program using some killcommand , but when I call kill() it just kills the startup process and not the four others that is launched by this process and are the "real" application.

Therefore I must have some way of getting hold of the pids for all four processes or their group pid. However, and this is my real problem, I cant use getpgid that is made for this porpose and lays in the <unistd.h> -file. WHY!!! Please help me.

I'm using KDeveloper/Qt and the distrib SuSE7.3.

Saw something in "man" like "getpgid conforms to SVr4", I was informed breafly what it means but I dont know what to do about it or if I even have to do anything about it.

Thanks/ Daniel
 
Old 05-17-2002, 05:59 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
http://www.linuxquestions.org/questi...threadid=21190
please don't doubel post.
 
  


Closed Thread



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Does the mounting of a *BSD partition on linux work work well when rw ? kloss *BSD 3 10-08-2005 02:21 PM
got ALSA to work in root, need help getting it to work in my user profile ic3 Slackware 2 11-28-2003 10:32 PM
FALCONS EYE (nethack) FAILS ON STARTUP, use to work, wont work even after reinstall roorings Linux - Software 0 10-08-2003 10:39 PM
UPS cable didn't work. A cool work-around jlangelier LinuxQuestions.org Member Success Stories 1 07-18-2003 05:04 PM
I can't use the getpgid function....WHY? help! DanneSwede Linux - Newbie 2 05-22-2002 03:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:40 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