close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 21 years ago

Closed 21 years ago

Last modified 18 years ago

#41 closed enhancement (fixed)

we need a function returning the activity of a process

Reported by: imendez Owned by: rcsoto
Priority: highest Milestone:
Component: Math Version: head
Severity: minor Keywords:
Cc:

Description

Frequently, we run processes with a number of subprocesses, such as football
probability simulations or model estimates and forecasts.

If one of these processes becomes died, we can´t know it. At this moment, we can
load in the data base the pid of each process, and kill the process we want to. But
it's not possible to know if a process is alive or died, in order to relaunch it.

The function could be similar to WinRmtKill:

Real WinRmtProcessAlive(Text ip, Text port, Real pid)

and it could return:
-1 if the remote server is not active or the comunication can´t be established;

0 if the process does not exist;
1 if the process has been killed.

Change History (5)

comment:1 Changed 21 years ago by danirus

Status: newassigned

comment:2 Changed 21 years ago by danirus

Owner: changed from danirus to rcsoto
Status: assignednew

The program WRCMD and their API are mantained by R.C.Soto and Manuel B.
They could find a fast solution for this bug.

comment:3 Changed 21 years ago by rcsoto

Status: newassigned

This studying the request.
In the next hours an answer will occur.

comment:4 Changed 21 years ago by rcsoto

Resolution: fixed
Status: assignedclosed

Added the WinRmtProcessAlive function.
Another possibility for the future, it is to obtain the list of all the active processes
of a computer.

comment:5 Changed 18 years ago by Víctor de Buen Remiro

bug_file_loc: http://www.tol-project.org
Note: See TracTickets for help on using tickets.