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

Re: User-space notification of process end


> I am writing a application which needs to know fairly promptly if a
> daemon has died.  I'd prefer not to ... run the program as a non-daemon
> child of a daemon watcher process.

Why not a watcher process, if I may ask.  That is, I'd be tempted to
stash a copy of the daemon's executable, and in place of the original
executalbe put a piece of code that fork/exec'd the stashed copy, waited
for the exit, and notified you as need be.

The available operations on files in the /proc file system tend to
be a very limited subset of those on regular files; so I am not
surprised that F_NOTIFY didn't work.

-- 
                          I won't rest till it's the best ...
                          Programmer, Linux Scalability
                          Paul Jackson <pj _at_ sgi.com> 1.650.933.1373
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo _at_ vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


この情報があなたの探していたものかどうか選択してください。
yes/まさにこれだ!   no/違うなぁ   part/一部見つかった   try/これで試してみる

あなたが探していた情報はどのようなことか、ご自由に記入下さい。特に「まさにこれだ!」と言う場合は記入をお願いします。
例:「複数のマシンからCATV経由でipmasqueradeを利用してWebを参照したい場合の設定について」
References: