[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gomd-devel] Re: <DAEMON>_ child-process TTL in execCommandAndGetChildOu
From: |
Matthias Rechenburg |
Subject: |
[gomd-devel] Re: <DAEMON>_ child-process TTL in execCommandAndGetChildOutput() function |
Date: |
Sun, 4 Jan 2004 13:26:50 +0000 |
User-agent: |
KMail/1.4.3 |
Ciao JP,
On Samstag 03 Januar 2004 23:20, Gian Paolo Ghilardi wrote:
> Hi all.
>
> First of all: HAPPY NEW YEAR!!! :)))
for you too !
>
> I've added a TTL for (invoked) commands that take a long time to complete
> (option => "exec [cmd/cwc] COMMAND LIST_OF_PARAMS"].
> Now if the invoked command takes a time >=PROCESS_TIME_TO_LIVE seconds
> (default=30), its process will be automagically killed (obviously its
> output, collected 'till that moment, will be returned to the client).
mhmmm, can i set the timeout to infinite ? ;)
>
> As you can see, the output of the (local or remote) command is "delayed",
> returned _after_ its process ends (so the command finished or it was killed
> because it takes too secs to complete).
>
> Does anybody prefer _real-time_ output for invoked commands?
... how much effort this will be ?
at least i would prefer real-time output which might be usefull for e.g.
debugging processes started by the gomd exec.
(just my mind ;)
>
> CU.
>
> Byez.
>
> <rejected>
howdy,
Matt
>
>
> << CVS NOTES >>
>
> IN constants.h
> (+) added PROCESS_TIME_TO_LIVE constant (set to 30)
>
> IN utils.cpp
> (+) added child-process time-to-live handling in
> execCommandAndGetChildOutput() function: if you invoke a command that takes
> a long time (>= PROCESS_TIME_TO_LIVE seconds), the process will be
> automagically killed and its ouput returned to the client.
> (+) added sigAlarmHandler() function to handle SIGVTALRM signal (raised
> when the child-process TTL expires)
> (+) added lots of comments
> (+) some cleanups
--
E-mail : address@hidden
www : http://www.openmosixview.com
an openMosix-cluster management GUI
/// |
(..) |
----oo0-\/-0oo-------|