1 | /* |
1 | /* |
|
|
2 | * libev select fd activity backend |
|
|
3 | * |
2 | * Copyright (c) 2007 Marc Alexander Lehmann <libev@schmorp.de> |
4 | * Copyright (c) 2007 Marc Alexander Lehmann <libev@schmorp.de> |
3 | * All rights reserved. |
5 | * All rights reserved. |
4 | * |
6 | * |
5 | * Redistribution and use in source and binary forms, with or without |
7 | * Redistribution and use in source and binary forms, with or without |
6 | * modification, are permitted provided that the following conditions are |
8 | * modification, are permitted provided that the following conditions are |
… | |
… | |
112 | } |
114 | } |
113 | } |
115 | } |
114 | else if (res < 0) |
116 | else if (res < 0) |
115 | { |
117 | { |
116 | if (errno == EBADF) |
118 | if (errno == EBADF) |
|
|
119 | fd_ebadf (); |
|
|
120 | else if (errno == ENOMEM) |
117 | fd_recheck (); |
121 | fd_enomem (); |
118 | } |
122 | } |
119 | } |
123 | } |
120 | |
124 | |
121 | static void |
125 | static void |
122 | select_init (int flags) |
126 | select_init (int flags) |