protocol: cleanup process without hanging

This commit is contained in:
Shuanglei Tao
2019-05-11 09:48:16 +08:00
parent fc4e06b907
commit e73a8e8587
4 changed files with 37 additions and 5 deletions

View File

@@ -25,6 +25,10 @@ get_sig_name(int sig, char *buf, size_t len);
int
get_sig(const char *sig_name);
// waitpid with WNOHANG and return the status
int
wait_proc(pid_t in, pid_t *out);
// Open uri with the default application of system
int
open_uri(char *uri);