Bug Tracker item #2817736, was opened at 2009-07-06 16:01
Message generated for change (Tracker Item Submitted) made by deantakemori
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1126467&aid=2817736&group_id=250683
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: daemon
Group: v3.9.0
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Dean Takemori (deantakemori)
Assigned to: Nobody/Anonymous (nobody)
Summary: Bogus warning messages in the log
Initial Comment:
Bogus warning messages in the log
Jul 1 01:00:00 HOSTNAME dspam[999]: write failed on error 40: No such file or
directory
I believe this bug was introduced by the patch committed on Jun 28, 2009
* Check return values of system functions for the hash driver
Specifically this part
@@ -446,9 +451,12 @@ _hash_drv_close(hash_drv_map_t map) {
if (r) {
LOG(LOG_WARNING, "munmap failed on error %d: %s", r, strerror(errno));
}
-
+
lseek (map->fd, 0, SEEK_SET);
- write (map->fd, &header, sizeof(struct _hash_drv_header));
+ r = write (map->fd, &header, sizeof(struct _hash_drv_header));
+ if (r) {
+ LOG(LOG_WARNING, "write failed on error %d: %s", r, strerror(errno));
+ }
close(map->fd);
map->addr = 0;
IIRC, POSIX says that write returns the number of bytes written or -1 on error
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1126467&aid=2817736&group_id=250683
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/blackberry
_______________________________________________
Dspam-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspam-devel