Xref: utzoo comp.lang.c:30391 comp.unix.questions:23887 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!rutgers!ncs.dnd.ca!ncs.dnd.ca!marwood From: marwood@ncs.dnd.ca (Gordon Marwood) Newsgroups: comp.lang.c,comp.unix.questions Subject: Killing a background process from a C program Message-ID: <1990Jul19.151728.17448@ncs.dnd.ca> Date: 19 Jul 90 15:17:28 GMT Sender: marwood@ncs.dnd.ca (Gordon Marwood) Organization: Dept of National Defence Lines: 13 I am in the process of converting a Bourne shell script to C, and I am having trouble finding out how to identify and kill background processes. With the Bourne Shell approach this was simple, using $!. What I would like to do is start a background process at one point in the C program, and at a later time kill it. Currently I am invoking the background process with system("background_process &");, but none of the texts that I have available help me to proceed any further. Any assistance would be appreciated. Gordon Marwood Internet: marwood@ncs.dnd.ca