X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fstream.c;h=43b73af0adf9f7f542019a031e57b3515a799298;hb=3bcf3e33e9cfb7fd837086bfa8e627110d84dce8;hp=2349b0c116be300ce1cb7953bbf5bde50c111628;hpb=f39dc942afd5fe241903aada30850a1d96122c8c;p=openvswitch diff --git a/lib/stream.c b/lib/stream.c index 2349b0c1..43b73af0 100644 --- a/lib/stream.c +++ b/lib/stream.c @@ -25,6 +25,7 @@ #include #include "coverage.h" #include "dynamic-string.h" +#include "fatal-signal.h" #include "flow.h" #include "ofp-print.h" #include "ofpbuf.h" @@ -237,6 +238,8 @@ stream_open_block(int error, struct stream **streamp) { struct stream *stream = *streamp; + fatal_signal_run(); + while (error == EAGAIN) { stream_run(stream); stream_run_wait(stream); @@ -570,6 +573,7 @@ pstream_accept_block(struct pstream *pstream, struct stream **new_stream) { int error; + fatal_signal_run(); while ((error = pstream_accept(pstream, new_stream)) == EAGAIN) { pstream_wait(pstream); poll_block();