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:
parent
cbf6b91669
commit
209eb5651a
2 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in a new issue