From d4a96bd64b4340b491afbaea38f3026dc8394343 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Wed, 19 Aug 2009 15:46:22 -0400 Subject: [PATCH] lib: remove exec::kill and exec::term Nobody use them now and they cause GCC warning. Also modify c_src/exec._sep.c since a macro disapeared in lib/standard/exec_nit.h. Signed-off-by: Jean Privat --- c_src/exec._sep.c | 1 - lib/standard/exec.nit | 7 ------- lib/standard/exec_nit.h | 1 - 3 files changed, 9 deletions(-) diff --git a/c_src/exec._sep.c b/c_src/exec._sep.c index 7b9d830..93b1179 100644 --- a/c_src/exec._sep.c +++ b/c_src/exec._sep.c @@ -598,7 +598,6 @@ void exec___NativeProcess___kill(val_t self, val_t param0) { struct WBT_ **closurevariable = NULL; trace.prev = tracehead; tracehead = &trace; trace.file = LOCATE_exec; - exec_NativeProcess_NativeProcess_kill_1(UNBOX_NativeProcess( self), UNTAG_Int( param0)); tracehead = trace.prev; return; } diff --git a/lib/standard/exec.nit b/lib/standard/exec.nit index eda24a9..996136b 100644 --- a/lib/standard/exec.nit +++ b/lib/standard/exec.nit @@ -40,12 +40,6 @@ class Process return _data.status end - # send a signal to the process - fun kill(signal: Int) do _data.kill(signal) - - # send the TERM (15) signal - fun term do kill(15) - # launch a command with some arguments init(command: String, arguments: String...) do @@ -173,7 +167,6 @@ special Pointer fun is_finished: Bool is extern "exec_NativeProcess_NativeProcess_is_finished_0" fun status: Int is extern "exec_NativeProcess_NativeProcess_status_0" fun wait is extern "exec_NativeProcess_NativeProcess_wait_0" - fun kill(s: Int) is extern "exec_NativeProcess_NativeProcess_kill_1" fun in_fd: Int is extern "exec_NativeProcess_NativeProcess_in_fd_0" fun out_fd: Int is extern "exec_NativeProcess_NativeProcess_out_fd_0" diff --git a/lib/standard/exec_nit.h b/lib/standard/exec_nit.h index 4f4311e..ec3efd4 100644 --- a/lib/standard/exec_nit.h +++ b/lib/standard/exec_nit.h @@ -34,7 +34,6 @@ struct se_exec_data { #define exec_NativeProcess_NativeProcess_id_0(self) (((se_exec_data_t*)self)->id) #define exec_NativeProcess_NativeProcess_status_0(self) (((se_exec_data_t*)self)->status) -#define exec_NativeProcess_NativeProcess_kill_1(self, p0) do{kill(((se_exec_data_t*)(self))->id, (p0));}while(0) #define exec_NativeProcess_NativeProcess_in_fd_0(self) (((se_exec_data_t*)self)->in_fd) #define exec_NativeProcess_NativeProcess_out_fd_0(self) (((se_exec_data_t*)self)->out_fd) -- 1.7.9.5