mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Runing programs can spit core if they crashed. It will be picked up
by gdb and debug it with nice dialog. Processes are now kept in list so pid/cmd can be easily tracked. Rest...
This commit is contained in:
@@ -13,6 +13,8 @@
|
||||
#ifndef __SPAWN_H__
|
||||
#define __SPAWN_H__
|
||||
|
||||
#include <unistd.h> // pid_t
|
||||
|
||||
/*
|
||||
* This is little bit modified code from edelib run_program()
|
||||
* so evoke specific stuff can be added. Also, possible option
|
||||
@@ -27,7 +29,14 @@
|
||||
#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
|
||||
|
||||
int spawn_program(const char* cmd);
|
||||
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);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user