From fcca16f36063a451cdbc125949e2b6a1425360cf Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Mon, 12 Mar 2007 00:43:21 +0000 Subject: [PATCH] =?utf8?q?Cambiar=20RET=5FFAIL=20para=20que=20sea=20signal?= =?utf8?q?-friendly.=20Si=20retorno=20es=20negativo,=20se=20espera=20que?= =?utf8?q?=20el=20programa=20termine=20con=20una=20se=C3=B1al=20de=20n?= =?utf8?q?=C3=BAmero=20igual=20a=20-retorno.=20Por=20eso=20RET=5FFAIL=20me?= =?utf8?q?jor=20definirlo=20con=20un=20valor=20inv=C3=A1lido=20para=20se?= =?utf8?q?=C3=B1ales.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- sercom/model.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sercom/model.py b/sercom/model.py index 2e60294..07ad64e 100644 --- a/sercom/model.py +++ b/sercom/model.py @@ -326,7 +326,7 @@ class TareaPrueba(Tarea): #{{{ class Comando(InheritableSQLObject): #{{{ # Tipos de retorno especiales RET_ANY = None - RET_FAIL = -1 + RET_FAIL = -256 # Archivos especiales STDIN = '__stdin__' STDOUT = '__stdout__' @@ -335,7 +335,8 @@ class Comando(InheritableSQLObject): #{{{ # Campos comando = UnicodeCol(length=255, notNone=True) descripcion = UnicodeCol(length=255, default=None) - retorno = IntCol(default=None) # None es que no importa + retorno = IntCol(default=None) # Ver RET_XXX y si es negativo + # se espera una señal max_tiempo_cpu = IntCol(default=None) # En segundos max_memoria = IntCol(default=None) # En MB max_tam_archivo = IntCol(default=None) # En MB -- 2.43.0