Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - Killing shell on serial device: Page 1 of 12 (12 Items)
   
Killing shell on serial device  
Hi QNX experts,

      Greetings!!
I have hit the wall in finding any elegant solution to kill shell(esh) running on /dev/ser device.
To kill it, at least I need its pid but I am not able to get its pid through any API easily which I can think of.
One way I thought was to use slay command with -t option however, it's not working out for me (always returns error that
 no process with esh name on /dev/ser1 tty)
I think re-starting shell on /dev/ser will be easy through fork or spawn.
but, esh being just binary available, I can't log its pid to any IPC where my application can kill on it.
Are there any POSIX APIs I am missing that could be useful here?

Any perspectives/ideas/suggestions, quite appreciated.

Thanks,
Tom