help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] get pid of exited process


From: Greg Wooledge
Subject: Re: [Help-bash] get pid of exited process
Date: Mon, 4 Jan 2016 09:22:24 -0500
User-agent: Mutt/1.4.2.3i

On Mon, Jan 04, 2016 at 05:15:03PM +0300, Stas Sergeev wrote:
> As I explained in the same mail, I need it for cleanups:
> if the program crashes, the script should remove the
> stalled sockets/fifos that usually embed the pid in their
> names.

Eh?  If the program exits, it should clean up its own sockets.  Can't you
fix the program, instead of trying to write this workaround wrapper?

If you can't, then it sounds like you want a child process that has the
ability to interact with a terminal device (i.e. is NOT a background job
created by a shell).  That sounds like a job for C.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]