Linux-kernel mailing list archive 2000-04,: Re: Tracking a process started from a kernel module

# Re: Tracking a process started from a kernel module

Horst von Brand (vonbrand@sleipnir.valparaiso.cl)
Thu, 27 Jan 2000 22:52:02 -0300

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Horst von Brand: "2.2.15pre4: Bad TCP performance (SLIP --> linux.kernel.org)"
- Previous message: Horst von Brand: "Re: Preventing gcc from aligning stack???"
- Maybe in reply to: breed@almaden.ibm.com: "Tracking a process started from a kernel module"
- Next in thread: almesber@lrc.di.epfl.ch: "Re: Tracking a process started from a kernel module"
- Reply: almesber@lrc.di.epfl.ch: "Re: Tracking a process started from a kernel module"

breed@almaden.ibm.com said:
> I have a kernel module that during the init_module calls kernel _thread,
> sets up two pipes, dups stdin and out, then execs a program that
> periodically I will communicate with the program from the kernel through
> the pipes. Everything is working fine, but I would like to be able to get
> a callback when a program goes away, so that I can gracefully recover. I
> don't see any hooks for this in the kernel. Is there a way to do this?

The original kerneld was based on such an idea, and was scrapped as it
introduced more problems than it solved. Perhaps you should rethink your
design, taking stuff out of the kernel.

    --
    Horst von Brand                             vonbrand@sleipnir.valparaiso.cl
    Casilla 9G, Viņa del Mar, Chile                               +56 32 672616

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.rutgers.edu
    Please read the FAQ at http://www.tux.org/lkml/

- Next message: Horst von Brand: "2.2.15pre4: Bad TCP performance (SLIP --> linux.kernel.org)"
- Previous message: Horst von Brand: "Re: Preventing gcc from aligning stack???"
- Maybe in reply to: breed@almaden.ibm.com: "Tracking a process started from a kernel module"
- Next in thread: almesber@lrc.di.epfl.ch: "Re: Tracking a process started from a kernel module"
- Reply: almesber@lrc.di.epfl.ch: "Re: Tracking a process started from a kernel module"