Revision: 7881
http://playerstage.svn.sourceforge.net/playerstage/?rev=7881&view=rev
Author: thjc
Date: 2009-06-23 13:27:20 +0000 (Tue, 23 Jun 2009)
Log Message:
-----------
silence error about EINTR on ctrl+c
Modified Paths:
--------------
code/player/trunk/libplayercore/filewatcher.cc
Modified: code/player/trunk/libplayercore/filewatcher.cc
===================================================================
--- code/player/trunk/libplayercore/filewatcher.cc 2009-06-23 13:07:54 UTC
(rev 7880)
+++ code/player/trunk/libplayercore/filewatcher.cc 2009-06-23 13:27:20 UTC
(rev 7881)
@@ -90,7 +90,9 @@
if (ret < 0)
{
- PLAYER_ERROR2("Select called failed in File Watcher: %d
%s",errno,strerror(errno));
+ // dont print a warning if we are ctrl+c'd
+ if (errno != EINTR)
+ PLAYER_ERROR2("Select called failed in File Watcher: %d
%s",errno,strerror(errno));
return ret;
}
else if (ret == 0)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit