1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 00:34:04 +00:00

Ignore SIGPIPE.

errnomsg -> errmsg.
This commit is contained in:
Josh Elsasser 2007-05-09 06:58:46 +00:00
parent cbf6b91669
commit 209eb5651a
2 changed files with 4 additions and 1 deletions

View file

@ -220,7 +220,7 @@ getlock( const char * path )
{
if( EAGAIN == errno )
{
errnomsg( "another copy of %s is already running", getmyname() );
errmsg( "another copy of %s is already running", getmyname() );
}
else
{

View file

@ -29,6 +29,7 @@
#include <ctype.h>
#include <event.h>
#include <getopt.h>
#include <signal.h>
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
@ -144,6 +145,8 @@ main( int argc, char ** argv )
exit( 1 );
}
signal( SIGPIPE, SIG_IGN );
evbase = event_init();
client_init( evbase );