How to get the pid of a process that send a signal to my program

H

hugo.arregui

Hi!

well, i have written a signal handler on my code, but i want to know
the pid of the process that send the signal. It's possible?

(I'm working on linux)

Thanks you.
 
H

hugo.arregui

Thanks you Keith, but Veza answer my question, i didn't read sigaction
parameters.

My fault xD.
 
A

Antoninus Twink

You still don't know if the answer is correct, and even if it was
Veza had no business answering it here, where it is off topic.

If you're still reading, please note that Thomson and Falconer have a
very narrow view of topicality, not shared by many other posters. Don't
let them bully you into not asking questions here in future.
 
N

Nick Keighley

On 12 Jun 2008 at  0:15, CBFalconer wrote


If you're still reading, please note that Thomson and Falconer have a
very narrow view of topicality, not shared by many other posters. Don't
let them bully you into not asking questions here in future.

please note Twink is a troll that tries to encourage
off-topic postings in order to disrupt the group.
It is best to ignore him.
Please do ask questions about the C programming language.
 
K

Kenny McCormack

If you're still reading, please note that Thomson and Falconer have a
very narrow view of topicality, not shared by many other posters. Don't
let them bully you into not asking questions here in future.

They are such old women - it is absolutely scary.

Just examine CBF's text above. Can't you just see some old biddy
with absolutely no life, worrying about other people's behavior?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top