diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-09-18 23:01:56 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-09-18 23:01:56 +0000 |
commit | f6ffb7a0c3339bae0567f70544efe5463d25d60c (patch) | |
tree | 397d0c2644ca4dc3184efbabda70c0bc2594cfa0 /kdmlib | |
parent | f365f870630b4708d5db05efb0dfe769eb8d1756 (diff) | |
download | tdebase-f6ffb7a0c3339bae0567f70544efe5463d25d60c.tar.gz tdebase-f6ffb7a0c3339bae0567f70544efe5463d25d60c.zip |
Close tsak daemon connection when read failed before trying again
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1254369 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdmlib')
-rw-r--r-- | kdmlib/kdmtsak.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kdmlib/kdmtsak.cpp b/kdmlib/kdmtsak.cpp index cf7de783f..ebfedb261 100644 --- a/kdmlib/kdmtsak.cpp +++ b/kdmlib/kdmtsak.cpp @@ -163,6 +163,7 @@ int main (int argc, char *argv[]) while (numread > 0) { numread = read(mPipe_fd, readbuf, 6); } + close(mPipe_fd); mPipe_fd = open(FIFO_FILE, O_RDWR); } } |