Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Pid from Siginfo Structure: (2 Items)
   
Pid from Siginfo Structure  
Hi,

We are trying to create crash by calling below line in our code,
int var = 1/0;

Then trying get "pid" from "siginfo_t" structure, but it's giving pid as 8. 

Can you anyone please help us to get correct pid of crashed process?

Thank you in Advance...

Thanks & Regards,
Sai
RE: Pid from Siginfo Structure  
try the help docs which describe all this.
http://www.qnx.com/developers/docs/7.0.0/#com.qnx.doc.neutrino.lib_ref/topic/s/siginfo_t.html

________________________________________
From: Sai Devasani [community-noreply@qnx.com]
Sent: Wednesday, March 27, 2019 08:55
To: ostech-core_os
Subject: Pid from Siginfo Structure

Hi,

We are trying to create crash by calling below line in our code,
int var = 1/0;

Then trying get "pid" from "siginfo_t" structure, but it's giving pid as 8.

Can you anyone please help us to get correct pid of crashed process?

Thank you in Advance...

Thanks & Regards,
Sai



_______________________________________________

OSTech
http://community.qnx.com/sf/go/post119607
To cancel your subscription to this discussion, please e-mail ostech-core_os-unsubscribe@community.qnx.com