TarsCloud / Tars

Tars is a high-performance RPC framework based on name service and Tars protocol, also integrated administration platform, and implemented hosting-service via flexible schedule.
BSD 3-Clause "New" or "Revised" License
9.8k stars 2.08k forks source link

system call exit code is -1 #722

Open wenbinye opened 4 years ago

wenbinye commented 4 years ago

What language are you using?

php

What operating system (Linux, Ubuntu, …) and version?

Linux 2e41eb0e126f 4.15.0-106-generic #107-Ubuntu SMP Thu Jun 4 11:27:52 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

What runtime / compiler are you using (e.g. jdk version or version of gcc)

Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).

put this code to bin/src/index.php:

$ret = system('date', $exit);
error_log(var_export([$ret, $exit], true), 3, "/tmp/php.log");

/tmp/php.log log the system call exit code is -1:

array (
  0 => 'Mon Jul 20 04:08:49 UTC 2020',
  1 => -1,
)

Run the script without tars framework, output the exit code 0.

tarscloudbot commented 3 years ago

welcome pr~