core file is now given from CrashDialog

Added run_program()
Added new splash image
New spawn_program() error codes
This commit is contained in:
Sanel Zukan
2007-08-07 11:54:57 +00:00
parent a80b5dcb2a
commit 25b80eaffa
9 changed files with 52 additions and 49 deletions

View File

@@ -21,22 +21,19 @@
* is that edelib run_program(), at some time, consult evoke
* for running programs.
*/
#define SPAWN_NOT_FOUND 65535 // executable not found
#define SPAWN_EMPTY 65534 // given parameter is NULL
#define SPAWN_NOT_EXEC 65533 // given parameter is not executable on system
#define SPAWN_FORK_FAILED 65532 // internal fork failed
#define SPAWN_WAITPID_FAILED 65531 // internal waitpid failed
#define SPAWN_EXECVE_FAILED 65530 // internal execve failed
#define SPAWN_PTY_FAILED 65529 // TODO
#define SPAWN_USER_CANCELED 65528 // TODO
#define SPAWN_CRASHED 65527 // executable crashed
#define SPAWN_KILLED 65526 // executable crashed
#define SPAWN_NOEXITED 65525
#define SPAWN_OK 0
#define SPAWN_FORK_FAILED 1
#define SPAWN_EMPTY 2
#define SPAWN_EXECVE_FAILED 3
#define SPAWN_CHILD_CRASHED -2
#define SPAWN_CHILD_KILLED -3
typedef void (SignalWatch)(int pid, int status);
int spawn_program(const char* cmd, SignalWatch* wf = 0, pid_t* child_pid_ret = 0);
int spawn_program_with_core(const char* cmd, SignalWatch* wf = 0, pid_t* child_pid_ret = 0);
int spawn_backtrace(const char* program, const char* core_path, const char* output, const char* script);
int spawn_backtrace(const char* program, const char* core, const char* output, const char* script);
#endif