diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-04-02 06:40:31 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-04-02 06:40:31 +0000 |
commit | 9d99af532912a3c3dcd3b489c4073ddb439ddcf6 (patch) | |
tree | c3b288057c4c5922c775bd101e76a32a2ec51d24 | |
parent | c8d850dbad7fae0ecd6f8e96dcfbea4188f353e6 (diff) |
if select returns -1, bail out of the loop
-rw-r--r-- | docs/examples/multi-single.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/examples/multi-single.c b/docs/examples/multi-single.c index 1998d25db..b6ba0c5c0 100644 --- a/docs/examples/multi-single.c +++ b/docs/examples/multi-single.c @@ -70,6 +70,8 @@ int main(int argc, char **argv) switch(rc) { case -1: /* select error */ + still_running = 0; + printf("select() returns error, this is badness\n"); break; case 0: default: |