LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
 
Search this Thread
Old 09-12-2006, 10:38 AM   #1
aral
Member
 
Registered: Aug 2005
Posts: 115

Rep: Reputation: 15
send signal to privileged application from unprivileged application


I tried to send a signal from an application running as normal user to an application running as root and obviously the application running as root didn't get the signal (it had a signal handler for it ). What can I change in order for the root application to get the signal ? I sent the signal using kill(pid, signumber) and I used SIGUSR1 for sig number .. Can anyone help me ?
 
Old 09-14-2006, 04:55 AM   #2
aral
Member
 
Registered: Aug 2005
Posts: 115

Original Poster
Rep: Reputation: 15
does anyone know ?
 
Old 09-20-2006, 07:55 AM   #3
aral
Member
 
Registered: Aug 2005
Posts: 115

Original Poster
Rep: Reputation: 15
Please, I really need this !
 
Old 09-22-2006, 09:48 AM   #4
aral
Member
 
Registered: Aug 2005
Posts: 115

Original Poster
Rep: Reputation: 15
Is this really so difficult ? I've imagined I'm the only one who doesn't know such simple things ..
 
Old 09-22-2006, 10:00 AM   #5
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 122Reputation: 122
Have you read the kill(2) manpage?
Quote:
For a process to have permission to send a signal it must either be
privileged (under Linux: have the CAP_KILL capability), or the real or
effective user ID of the sending process must equal the real or saved
set-user-ID of the target process. In the case of SIGCONT it suffices
when the sending and receiving processes belong to the same session.
 
Old 10-27-2006, 12:34 PM   #6
aral
Member
 
Registered: Aug 2005
Posts: 115

Original Poster
Rep: Reputation: 15
So , what's the definition of "session" which the manual mentiones when it says : "when the sending and receiving processes belong to the same session " ?
 
  


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
mail application to send attachments dragunu Linux - Newbie 2 05-17-2006 08:27 AM
how to link helpblocks application to gtk application m.harshavardhan Linux - Software 0 08-16-2005 08:39 AM
signal 11error every time an application closes Siriond Linux - Software 3 08-29-2004 11:13 PM
how i migrate windows application to Linux base application vandarakalpesh Linux - Software 0 06-26-2004 03:34 AM
How to send an e-mail from within a linux application samble Programming 2 02-20-2004 07:09 AM


All times are GMT -5. The time now is 08:51 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration