This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How do I kill a grandchild process from shell program?


Matthew Woehlke wrote:
'kill -SIGHUP <process>'?

Thanks. Unfortunately, the problem I had was really about how to find the pid from within a shell program. In the end, a combination of ps, grep, tr, and cut seemed to do the trick.


Or if the child is a bash script, you might be able to re-write it to
trap a signal (e.g. SIGUSR1) that instructs the child to kill /its/
child (the assumption being that the child knows its own child's
PID).

This is not a bad idea. I may explore this in a future rev...


--
Jim Seymour


-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]