cgcgx / hustoj

Automatically exported from code.google.com/p/hustoj
0 stars 0 forks source link

special judge fixes #90

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

code in judge_clinet.cc, receving return code from spj, can recieve wrong code 
when stderr is occured.( not sure )

I solved this problem like this..

core/judge_client/judge_client.cc:1447  ret=execute_cmd("%s/data/%d/spj %s %s 
%s", oj_home,

to 

core/judge_client/judge_client.cc:1447  ret=execute_cmd("%s/data/%d/spj %s %s 
%s >/dev/null 2>&1", oj_home,

and core/make.sh

Original issue reported on code.google.com by flrn...@gmail.com on 11 Jul 2013 at 1:23

GoogleCodeExporter commented 9 years ago
yes,but why stderr happens ?

Original comment by newsc...@gmail.com on 7 Aug 2013 at 2:25

GoogleCodeExporter commented 9 years ago
I think stderr was sort of python error(spj) or java error(user source)..

Original comment by flrn...@gmail.com on 7 Aug 2013 at 2:36