projects
/
sdk
/
tools
/
profctl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b650c4
)
profctl hang fix
author
Igor Oblakov
<ioblakov@dev.rtsoft.ru>
Fri, 10 Aug 2018 07:08:31 +0000
(10:08 +0300)
committer
Aleksei Vereshchagin
<avereschagin@dev.rtsoft.ru>
Tue, 28 Aug 2018 22:24:18 +0000
(
01:24
+0300)
profctl.c
patch
|
blob
|
history
diff --git
a/profctl.c
b/profctl.c
index
2c9d6c3
..
3df795b
100644
(file)
--- a/
profctl.c
+++ b/
profctl.c
@@
-57,6
+57,7
@@
static struct option long_options[] = {
{0, 0, 0, 0}
};
+static void openFileProcess();
static FILE *tf;
static void *output_thread(void *arg)
@@
-64,6
+65,8
@@
static void *output_thread(void *arg)
size_t lsize = 0;
char *buffer = NULL;
+ openFileProcess();
+
while (getline(&buffer, &lsize, tf) != -1) {
puts(buffer);
}
@@
-531,7
+534,6
@@
int main(int argc, char **argv)
atexit(finish);
if (pname) {
- openFileProcess();
SimpleThread(&output_thread);
}