diff options
author | Ray Strode <rstrode@redhat.com> | 2007-05-06 18:21:25 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2007-05-06 18:21:25 -0400 |
commit | aecc55079395beede01c6e1041a0f906ed44f413 (patch) | |
tree | c5edb6431d566fbbb5736e3e0b5d1d635d231c50 | |
parent | 0ef69d81c221798c3fbbd89676c98e99a389ba2f (diff) |
add some comments explaining two error cases in the
io test action
-rw-r--r-- | src/pop-transaction.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pop-transaction.c b/src/pop-transaction.c index d45b6e9..f135c9d 100644 --- a/src/pop-transaction.c +++ b/src/pop-transaction.c @@ -1429,10 +1429,16 @@ proces_io_action (PopTransaction *transaction, if (errno == EINTR) { + /* EINTR we can handle automatically by just trying again + */ return POP_ACTION_PROCESS_STATUS_NOT_FINISHED; } else if (errno == EAGAIN) { + /* EAGAIN means + * "there's no more data to work with right now" + * so we pause the transaction until there is data + */ pop_transaction_wait_for_fd (transaction, arguments->fd, condition, NULL); return POP_ACTION_PROCESS_STATUS_NOT_FINISHED; |