Skip to content
Snippets Groups Projects
Commit 17d04915 authored by Ho Yin Chan's avatar Ho Yin Chan
Browse files

trunk:src/onlinebin prevent crash in write/send due to broken pipe

git-svn-id: https://svn.code.sf.net/p/kaldi/code/trunk@5010 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
parent a0988ec5
Branches
No related tags found
No related merge requests found
......@@ -38,6 +38,7 @@
#include <sys/types.h>
#include <unistd.h>
#include <ctime>
#include <signal.h>
namespace kaldi {
/*
......@@ -72,6 +73,7 @@ int32 main(int argc, char *argv[]) {
typedef kaldi::int32 int32;
typedef OnlineFeInput<Mfcc> FeInput;
TcpServer tcp_server;
signal(SIGPIPE, SIG_IGN);
// up to delta-delta derivative features are calculated (unless LDA is used)
const int32 kDeltaOrder = 2;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment