mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-28 19:53:46 +00:00
Fix build with clang
This commit is contained in:
@@ -53,16 +53,18 @@ static int
|
||||
run_cmd(const char *cmdstring)
|
||||
{
|
||||
pid_t pid;
|
||||
int status;
|
||||
if (cmdstring == NULL) {
|
||||
return 1;
|
||||
}
|
||||
int status = 0;
|
||||
|
||||
if (cmdstring == NULL)
|
||||
return -1;
|
||||
|
||||
if ((pid = fork()) < 0) {
|
||||
status = -1;
|
||||
} else if (pid == 0) {
|
||||
execl("/bin/sh", "sh", "-c", cmdstring, (char *)0);
|
||||
_exit(127);
|
||||
}
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user