diff options
author | LAN-TW <lantw44@gmail.com> | 2013-11-16 02:33:03 +0800 |
---|---|---|
committer | LAN-TW <lantw44@gmail.com> | 2013-11-16 02:33:03 +0800 |
commit | e6d786a403a36b98e4f6082ee9848473825db8e8 (patch) | |
tree | 9dbff1670f9a30e64c6b0fe6a3f2fcd36da67173 /hw2/judge.c | |
parent | fd5eea92e3f2337e5fd5f336863e5356eda4226f (diff) | |
download | sp2013-e6d786a403a36b98e4f6082ee9848473825db8e8.tar sp2013-e6d786a403a36b98e4f6082ee9848473825db8e8.tar.gz sp2013-e6d786a403a36b98e4f6082ee9848473825db8e8.tar.bz2 sp2013-e6d786a403a36b98e4f6082ee9848473825db8e8.tar.lz sp2013-e6d786a403a36b98e4f6082ee9848473825db8e8.tar.xz sp2013-e6d786a403a36b98e4f6082ee9848473825db8e8.tar.zst sp2013-e6d786a403a36b98e4f6082ee9848473825db8e8.zip |
HW2: big_judge 大致可以運作了
Diffstat (limited to 'hw2/judge.c')
-rw-r--r-- | hw2/judge.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hw2/judge.c b/hw2/judge.c index bfd8e31..02b513a 100644 --- a/hw2/judge.c +++ b/hw2/judge.c @@ -132,6 +132,8 @@ int main (int argc, char* argv[]) { }; sigemptyset (&sa.sa_mask); sigaction (SIGALRM, &sa, NULL); + sa.sa_handler = SIG_IGN; + sigaction (SIGPIPE, &sa, NULL); char *linestr = NULL; size_t linelen = 0; @@ -341,8 +343,11 @@ int main (int argc, char* argv[]) { } for (int j = 0; j < 4; j++) { + comp135_log (comp, "Send %s %d to big_judge", + pl[j], ffd[rank[j]].rank); printf ("%s %d\n", pl[j], ffd[rank[j]].rank); } + fflush (stdout); new_loop_end: free (linestr); |